-
-
Notifications
You must be signed in to change notification settings - Fork 33
the example 1.2.3-alpha.10.beta.0+build.unicorn.rainbow
in README is no longer valid
#18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
after looking at the history I think #15 is related, then we need to update the example and it will be great to add some notes and an example |
But I don't think the mentioned semver clause 9 forbids this because their grammar as well as the given regex suggest that |
@KagamiChan Sorry it took so long to answer. Quoting https://semver.org/,
From RFC2119:
Also, looking into BNF(available at https://semver.org/ too):
I don't think there is a chance of me misunderstanding specification. |
Hi @stroncium Thanks for your reply I think you're referring "must not include leading zeros", but a single zero does not seem to apply to this case, otherwise we cannot express the 0 itself and in the BNF, In fact, the suggested regexp in semver.org also allows the form '1.0.0-beta.0', you may try this regex in regex101 via the link in the answer |
@KagamiChan Oh hell, sorry. I actually read though this BNF like 5 times when implementing original patch and twice while replying to this issue, and every damn time I managed to overlook this cunning |
Thanks for you quick fix! |
while in semver package,
.0
is considered correct and in npm doc we can see this usageThe text was updated successfully, but these errors were encountered: