mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[GH-ISSUE #47] Are leading '0' characters valid? #7011
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pzb on GitHub (Sep 9, 2012).
Original GitHub issue: https://github.com/semver/semver/issues/47
Currently the spec calls out major, minor, and patch as "non-negative integers". However this does not actually provide presentation information. All the examples show these non-negative integers represented in decimal form without leading zeros, but it is unclear if this is required. Are the following legal versions according to the spec?
@haacked commented on GitHub (Oct 2, 2012):
I believe decimal format is implied. So under that interpretation, you first and third ones
1.03.2and2.010.14would be valid, but not the other ones.@haacked commented on GitHub (Oct 2, 2012):
Great question. I'm going to close this unless you have a specific proposal in mind. I'm not sure it really needs calling out that version numbers are decimal format, but feel free to convince us otherwise. :)