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.7 and confuses me.
So what exactly means "leading zeroes" (examples?) and how pre-release -0.3.7 from that example is not a leading zero situation?
Thank you
Originally created by @PatchaIT on GitHub (Mar 2, 2025).
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.7` and confuses me.
So what exactly means "leading zeroes" (examples?) and how pre-release `-0.3.7` from that example is not a leading zero situation?
Thank you
A leading zero would be something like 01.3.7 instead of 1.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?
@steveklabnik commented on GitHub (Mar 3, 2025):
A leading zero would be something like `01.3.7` instead of `1.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?
it's not a "leading" zero because there's nothing following it
Except the dot. 😅
Anyway, ok I got it, no zero leading other numbers.
Because we are talking about "numeric identifiers" actually.
@PatchaIT commented on GitHub (Mar 3, 2025):
> it's not a "leading" zero because there's nothing following it
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 ***@***.***> نوشت:
> it's not a "leading" zero because there's nothing following it
>
> Except the dot. 😅
>
> Anyway, ok I got it, no zero leading letters or numbers, I suppose.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/semver/semver/issues/1084#issuecomment-2695324104>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AT6BB5ITRKSJSSEFP7IBXO32SSTGRAVCNFSM6AAAAABYFIOAYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJVGMZDIMJQGQ>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
> [image: PatchaIT]*PatchaIT* left a comment (semver/semver#1084)
> <https://github.com/semver/semver/issues/1084#issuecomment-2695324104>
>
> it's not a "leading" zero because there's nothing following it
>
> Except the dot. 😅
>
> Anyway, ok I got it, no zero leading letters or numbers, I suppose.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/semver/semver/issues/1084#issuecomment-2695324104>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AT6BB5ITRKSJSSEFP7IBXO32SSTGRAVCNFSM6AAAAABYFIOAYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJVGMZDIMJQGQ>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @PatchaIT on GitHub (Mar 2, 2025).
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!