You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per http://semver.org/#spec-item-2
"A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative integers, and MUST NOT contain leading zeroes."
The strict parameter in Parse/TryParse should either perform this validation (which would be a breaking semantic change), or another parameter should be added to allow enforcing this. Thoughts?
I'm happy to contribute a fix.
The text was updated successfully, but these errors were encountered:
zarenner
changed the title
Parse "strict mode" allows leading zeroes
Parse "strict mode" allows leading zeroes, invalid pre-release identifiers
Feb 17, 2016
Since it may not be obvious, the title refers to version strings like "1.0.0-alpha.01" which is invalid according to the BNF in the spec because the prerelease segment "01" is not a valid numeric segment.
Per http://semver.org/#spec-item-2
"A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative integers, and MUST NOT contain leading zeroes."
The strict parameter in Parse/TryParse should either perform this validation (which would be a breaking semantic change), or another parameter should be added to allow enforcing this. Thoughts?
I'm happy to contribute a fix.
The text was updated successfully, but these errors were encountered: