mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +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))
|
.map((date) => parseInt(date.split('-')[0], 10))
|
||||||
.filter((year) => {
|
.filter((year) => {
|
||||||
const stringYear = year.toString();
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user