mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[GH-ISSUE #1084] [Clarification request] spec-item-9 "Numeric identifiers MUST NOT include leading zeroes." and example 1.0.0-0.3.7
#3381
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 @PatchaIT on GitHub (Mar 2, 2025).
Original GitHub issue: https://github.com/semver/semver/issues/1084
Hi all.
I was searching if anybody already talked about this, and I found this other issue, too:
https://github.com/semver/semver/issues/760
So, I am bit confused for it and I'm going to ask clarification here to better understand it myself.
The rule 9 for pre-releases says: "Numeric identifiers MUST NOT include leading zeroes.", I don't know if I'm misinterpreting, also because I was reading the Italian translated version saying "
Gli identificatori numerici NON DEVONO includere zeri iniziali", which is correctly translated, but could also be interpretated as "Numeric identifiers MUST NOT start with a zero".And then there's this "valid" example which is
1.0.0-0.3.7and confuses me.So what exactly means "leading zeroes" (examples?) and how pre-release
-0.3.7from that example is not a leading zero situation?Thank you
@steveklabnik commented on GitHub (Mar 3, 2025):
A leading zero would be something like
01.3.7instead of1.3.7. A plain zero is just a zero, it's not a "leading" zero because there's nothing following it. Does that make sense?@PatchaIT commented on GitHub (Mar 3, 2025):
Except the dot. 😅
Anyway, ok I got it, no zero leading other numbers.
Because we are talking about "numeric identifiers" actually.
@asma-khordsal commented on GitHub (Mar 3, 2025):
در دوشنبه 3 مارس 2025 در 22:48 PatchaIT @.***> نوشت:
@steveklabnik commented on GitHub (Mar 4, 2025):
Great!