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'; }