Skip to content

Commit 505e8ba

Browse files
authored
Merge pull request #69 from AndrewAllison/master
fix(65): Setting variable does not work when value has dash: Updates …
2 parents 79b101c + fd17b6b commit 505e8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (argv.c) {
4747
}
4848

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

0 commit comments

Comments
 (0)