From f180ec72e801fa92a5bf36c9d674ac087e36c2f4 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 13 May 2020 08:31:36 +0200 Subject: [PATCH] fix --- asset_jenkins.js | 2 +- jenkins.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asset_jenkins.js b/asset_jenkins.js index 7049470..4ada885 100644 --- a/asset_jenkins.js +++ b/asset_jenkins.js @@ -40,7 +40,7 @@ if (fs.existsSync ('README.md')) { // eslint-disable-next-line prefer-named-capture-group const version = (/version: ([0-9.]+)/ui).exec (readme); if ( - typeof version === 'undefined' + version === null || version[1] !== pkg.version ) { console.log ('readme version does not match package version'); diff --git a/jenkins.js b/jenkins.js index 041edf6..031f8d8 100644 --- a/jenkins.js +++ b/jenkins.js @@ -31,7 +31,7 @@ if (fs.existsSync ('README.md')) { // eslint-disable-next-line prefer-named-capture-group const version = (/version: ([0-9.]+)/ui).exec (readme); if ( - typeof version === 'undefined' + version === null || version[1] !== pkg.version ) { console.log ('readme version does not match package version');