diff --git a/jenkins.run.js b/jenkins.run.js index ed98f38..4fc9def 100644 --- a/jenkins.run.js +++ b/jenkins.run.js @@ -59,7 +59,7 @@ if (fs.existsSync ('CHANGELOG.md')) { const cl_version = (/^## ([0-9x.]+)/mu).exec (changelog); if ( cl_version === null - || major (cl_version[1] !== major (pkg.version)) + || major (cl_version[1]) !== major (pkg.version) ) { console.log ('changelog is not up to date'); ok = false;