From 08ec8d9182083cceee91d63779c39b1675753638 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 13 May 2020 21:12:29 +0200 Subject: [PATCH] fix --- jenkins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins.js b/jenkins.js index 0cd1194..37c1969 100644 --- a/jenkins.js +++ b/jenkins.js @@ -26,12 +26,12 @@ if (typeof pkg.repository === 'undefined') { } function major (version) { - return version.replace (/\.[0-9]+$/ui, ''); + return version.replace (/\.[0-9x]+$/ui, ''); } if (fs.existsSync ('README.md')) { const readme = fs.readFileSync ('README.md', 'utf-8'); - const version = (/version: ([0-9.]+)/ui).exec (readme); + const version = (/version: ([0-9x.]+)/ui).exec (readme); if ( version === null || major (version[1]) !== major (pkg.version)