Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior for options with uppercase values #141

Open
jeffsee55 opened this issue Mar 6, 2023 · 0 comments
Open

Inconsistent behavior for options with uppercase values #141

jeffsee55 opened this issue Mar 6, 2023 · 0 comments

Comments

@jeffsee55
Copy link

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:

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.

@jeffsee55 jeffsee55 changed the title Options with uppercase values Inconsistent behavior for options with uppercase values Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant