mirror of
https://github.com/semver/semver.git
synced 2026-07-10 19:50:47 -05:00
[GH-ISSUE #185] Bad example #4368
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 @burn2delete on GitHub (Mar 16, 2014).
Original GitHub issue: https://github.com/semver/semver/issues/185
A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version. Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST NOT be empty. Numeric identifiers MUST NOT include leading zeroes. Pre-release versions have a lower precedence than the associated normal version. A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version. Examples: 1.0.0-alpha, 1.0.0-alpha.1, 1.0.0-0.3.7, 1.0.0-x.7.z.92.
This section has a false example... 1.0.0-0.3.7 has a leading zero, which is explicitly said it shouldn't contain. Or am I misreading this section?
@rlidwka commented on GitHub (Mar 16, 2014):
You're misreading this section.
0.3.7has three components,0,3,7, and each of them shouldn't have leading zero. Leading zero is a zero before another digit, i.e.0001.0isn't a leading zero, it's just zero.It means that
9.9.9-0.3.7is allowed, but9.9.9-1.0003.7is not.@jwdonahue commented on GitHub (Dec 6, 2017):
@flyboarder, if you have no further questions, please close this issue at your earliest possible convenience.