-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
You regex allows leading zeroes #2
Comments
You may replace the \d by [1-9]|[1-9][0-9]+ |
sindresorhus
added a commit
that referenced
this issue
Jul 19, 2014
Nice catch :) Would you be interested in doing a PR? |
OK. I will do a PR... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The regex allows leading zeroes in the major, minor and patch component of the version which is not allowed:
The text was updated successfully, but these errors were encountered: