mirror of
https://github.com/semver/semver.git
synced 2026-07-11 05:12:48 -05:00
[GH-ISSUE #624] Regex examples contain invalid semvers as valid semvers #3153
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 @sschuberth on GitHub (Oct 11, 2020).
Original GitHub issue: https://github.com/semver/semver/issues/624
My understanding from reading 9., looking at the BNF and reading comment like this is that if there is both a pre-release and build meta data part, the pre-release part has to come first. Still, the online regexes contain e.g.
1.1.2+meta-validas a valid semver, whereas it IMO should be1.1.2-valid+meta.@klehelley commented on GitHub (Oct 12, 2020):
Hyphens are allowed in build metadata. As a consequence,
1.1.2+meta-validis a valid SemVer string, and should be interpreted as such:112meta-valid@sschuberth commented on GitHub (Oct 12, 2020):
Thanks for the clarification. I was confused by
<build identifier> ::= <alphanumeric identifier> ...as I though it's clear that "alphanumeric" are just letters and digits, but in fact it is<alphanumeric identifier> ::= <non-digit> ..., and<non-digit>includes"-".