Remove substring

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-17 14:16:00 +03:00
parent 3576662484
commit 51bac3bf73
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -10,7 +10,7 @@ try {
const version = require('./package.json').version;
// the version is in semantic format, so we can split it by dot
const versionParts = version.substring(1).split('.');
const versionParts = version.split('.');
if (label === 'major')
versionParts[0] = parseInt(versionParts[0]) + 1;
else if (label == 'minor')