Skip to content

Commit

Permalink
fix bad boolean regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno authored and substack committed Mar 10, 2020
1 parent 4cf45a2 commit ac3fc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module.exports = function (args, opts) {
setArg(key, args[i+1], arg);
i++;
}
else if (args[i+1] && /true|false/.test(args[i+1])) {
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
setArg(key, args[i+1] === 'true', arg);
i++;
}
Expand Down

0 comments on commit ac3fc79

Please sign in to comment.