Skip to content

Commit ac3fc79

Browse files
joaomorenosubstack
authored andcommitted
fix bad boolean regexp
1 parent 4cf45a2 commit ac3fc79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module.exports = function (args, opts) {
171171
setArg(key, args[i+1], arg);
172172
i++;
173173
}
174-
else if (args[i+1] && /true|false/.test(args[i+1])) {
174+
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
175175
setArg(key, args[i+1] === 'true', arg);
176176
i++;
177177
}

0 commit comments

Comments
 (0)