Skip to content

Commit 3006675

Browse files
committed
consider spaces on regex
1 parent 91cb4ef commit 3006675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ const LATEST_VERSION_SYNTAX_REGEX = /\d*.latest(.\d*)?/gm
231231

232232
const AUTH_REGEX = /"auth" *: *{[\s\S]*?}/g
233233

234-
const CLI_ARGS_REGEX = /(?<=("u"|"username"|"k"|"key"):)"[^,]*/g
234+
const CLI_ARGS_REGEX = /(?<=("u"|"username"|"k"|"key") *: *)"[^,|}]*/g
235235

236-
const RAW_ARGS_REGEX = /(?<=("-u"|"-username"|"-k"|"-key"),)"[^,\]]*/g
236+
const RAW_ARGS_REGEX = /(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g
237237

238238
const ERROR_EXIT_CODE = 1;
239239

0 commit comments

Comments
 (0)