From f876cd4e32a1f5e6296eb0f2fd64ff0a9e0209bc Mon Sep 17 00:00:00 2001 From: aliberkhsl Date: Wed, 7 Jul 2021 03:33:48 +0300 Subject: [PATCH] refactor : solve preid issue --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5ad32ff..db4f139 100644 --- a/index.js +++ b/index.js @@ -73,7 +73,9 @@ Toolkit.run(async (tools) => { }), ) ) { - preid = foundWord.split('-')[1]; + if (foundWord != ''){ + preid = foundWord.split('-')[1]; + } version = 'prerelease'; }