From 2d943894c18b058ccbf3b8a13a3874ea588587c9 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 15 May 2020 12:22:33 +0200 Subject: [PATCH] update jenkins.js --- jenkins.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/jenkins.js b/jenkins.js index d280609..37c1969 100644 --- a/jenkins.js +++ b/jenkins.js @@ -1,10 +1,3 @@ -/* - * Copyright (C) Sapphirecode - All Rights Reserved - * This file is part of utilities which is released under MIT. - * See file 'LICENSE' for full license details. - * Created by Timo Hocker , May 2020 - */ - /* eslint-disable */ 'use strict'; @@ -33,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)