Open jeffsee55 opened 1 year ago
This options regex disallows --someUppercase=my-value but allows --someUppercase my-value and allows -someUppercase=my-value. I was able to get what i wanted by changing it to:
--someUppercase=my-value
--someUppercase my-value
-someUppercase=my-value
const OPTION_REGEX = /^(--[a-zA-Z]+(?:-[a-zA-Z]+)*|-[a-zA-Z]+)$/;
Happy to submit a PR if this was an oversight, but curious to know why it's like this if it was intentional.
This options regex disallows
--someUppercase=my-value
but allows--someUppercase my-value
and allows-someUppercase=my-value
. I was able to get what i wanted by changing it to:Happy to submit a PR if this was an oversight, but curious to know why it's like this if it was intentional.