From 256a91f4b16fa627591b3a44b17a10abb453f620 Mon Sep 17 00:00:00 2001 From: thalles Date: Fri, 30 Jul 2021 09:54:38 -0300 Subject: [PATCH] testing Signed-off-by: thalles --- licence.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/licence.js b/licence.js index a4df317..8f76bbd 100644 --- a/licence.js +++ b/licence.js @@ -23,7 +23,7 @@ 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()}` } @@ -31,6 +31,7 @@ function hasCorrectCopyrightDate(copyrightFile, file, startDateLicense) { if (file.status === 'created'){ requiredDate = `Copyright ${new Date().getFullYear()}` } + console.log(requiredDate) return copyrightFile.includes(requiredDate) }