Skip to content

Commit

Permalink
Merge pull request #33 from thalleslmF/pr-208
Browse files Browse the repository at this point in the history
testing
  • Loading branch information
thalleslmF authored Jul 30, 2021
2 parents 60b78e6 + 256a91f commit 0c583a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion licence.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ function hasCorrectCopyrightDate(copyrightFile, file, startDateLicense) {
let requiredDate = ''
if (file.status === 'modified'){
if(file.year < new Date().getFullYear()) {
requiredDate = `Copyright ${startDateLicense, new Date().getFullYear()}`
requiredDate = `Copyright ${startDateLicense}, ${new Date().getFullYear()}`
}else{
requiredDate = `Copyright ${new Date().getFullYear()}`
}
}
if (file.status === 'created'){
requiredDate = `Copyright ${new Date().getFullYear()}`
}
console.log(requiredDate)
return copyrightFile.includes(requiredDate)
}

Expand Down

0 comments on commit 0c583a9

Please sign in to comment.