fix: fix regression with copyright years

This commit is contained in:
Karl-Philipp Wulfert
2019-05-28 11:05:45 +02:00
parent 9945333379
commit 5659295b88

View File

@@ -534,7 +534,7 @@ export function checkCopyrightYears(path: PathLike, subDir: PathLike): void {
.map((date) => parseInt(date.split('-')[0], 10))
.filter((year) => {
const stringYear = year.toString();
if (seen.indexOf(year) >= 0 || stringYear.match(/[0-9]{4}/) !== null) {
if (seen.indexOf(year) >= 0 || stringYear.match(/[0-9]{4}/) === null) {
return false;
}