mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 11:12:52 +00:00
fix: fix regression with copyright years
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user