[GH-ISSUE #197] Semantic Versioning Specification (SemVer) 9.entry #7106

Closed
opened 2026-06-20 16:49:47 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @muzir on GitHub (May 9, 2014).
Original GitHub issue: https://github.com/semver/semver/issues/197

At examples of this entry; there is an example version like "1.0.0-0.3.7" but isn't it a conflict with " Numeric identifiers MUST NOT include leading zeroes" sentence at the same entry? Because this example pre-release is starting with "0" after "-" symbol.

Originally created by @muzir on GitHub (May 9, 2014). Original GitHub issue: https://github.com/semver/semver/issues/197 At examples of this entry; there is an example version like "1.0.0-0.3.7" but isn't it a conflict with " Numeric identifiers MUST NOT include leading zeroes" sentence at the same entry? Because this example pre-release is starting with "0" after "-" symbol.
Author
Owner

@crazedsanity commented on GitHub (May 9, 2014):

It's not a conflict: the version after the dash (0.3.7) has a major version of 0 (zero), minor version of 3, patch of 7. It's perfectly valid to have a zero as any of the version bits.

<!-- gh-comment-id:42666234 --> @crazedsanity commented on GitHub (May 9, 2014): It's not a conflict: the version after the dash (0.3.7) has a major version of 0 (zero), minor version of 3, patch of 7. It's perfectly valid to have a zero as any of the version bits.
Author
Owner

@FichteFoll commented on GitHub (May 9, 2014):

No, the zero in this case is a number by itself. What the clause excludes is things like 01.

<!-- gh-comment-id:42666242 --> @FichteFoll commented on GitHub (May 9, 2014): No, the zero in this case is a number by itself. What the clause excludes is things like `01`.
Author
Owner

@jeffhandley commented on GitHub (Jul 9, 2014):

Sounds like this can be closed, @Haacked.

<!-- gh-comment-id:48499787 --> @jeffhandley commented on GitHub (Jul 9, 2014): Sounds like this can be closed, @Haacked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#7106