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)