[GH-ISSUE #1084] [Clarification request] spec-item-9 "Numeric identifiers MUST NOT include leading zeroes." and example 1.0.0-0.3.7 #6656

Closed
opened 2026-06-17 05:29:30 -05:00 by GiteaMirror · 4 comments
Owner

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.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). 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.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
Author
Owner

@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?

<!-- gh-comment-id:2695182087 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:2695324104 --> @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.
Author
Owner

@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: @.***>

<!-- gh-comment-id:2695392526 --> @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: ***@***.***> >
Author
Owner

@steveklabnik commented on GitHub (Mar 4, 2025):

Great!

<!-- gh-comment-id:2698407512 --> @steveklabnik commented on GitHub (Mar 4, 2025): Great!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#6656