From 51bac3bf731db9b4b48737c9863c68b580acb359 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Sun, 17 Sep 2023 14:16:00 +0300 Subject: [PATCH] Remove substring Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ef2a8d9..9f504a2 100644 --- a/index.js +++ b/index.js @@ -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')