Skip to content

Commit 95a3d1a

Browse files
committed
Compare license ignoring trailing spaces
1 parent ff1d4fc commit 95a3d1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/header.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ function updateHeadersInSrcFiles() {
8787
});
8888

8989
function isCorrect(header) {
90-
return (header.value === licenseStr);
90+
return (
91+
header.value.replace(/\s+$/gm, '') ===
92+
licenseStr.replace(/\s+$/gm, '')
93+
);
9194
}
9295

9396
function hasWrongDate(header) {

0 commit comments

Comments
 (0)