Skip to content

Commit

Permalink
Merge pull request #69 from AndrewAllison/master
Browse files Browse the repository at this point in the history
fix(65): Setting variable does not work when value has dash: Updates …
  • Loading branch information
entropitor authored Mar 25, 2022
2 parents 79b101c + fd17b6b commit 505e8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (argv.c) {
}

function validateCmdVariable (param) {
if (!param.match(/^\w+=\w+$/)) {
if (!param.match(/^\w+=[a-zA-Z0-9"=^!?%@_&\-/:;.]+$/)) {
console.error('Unexpected argument ' + param + '. Expected variable in format variable=value')
process.exit(1)
}
Expand Down

0 comments on commit 505e8ba

Please sign in to comment.