mirror of
https://github.com/semver/semver.git
synced 2026-03-08 23:12:02 -05:00
<build identifier>'s BNF should be simplified #465
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 @ogregoire on GitHub (Mar 24, 2021).
Unless I'm missing something, one can write a build identifier as any sequence of digits, letters and dashes.
Therefore I think it'll be easier to understand the format of
build identifierif it is simplified as follows:If not, can you provide an example of build identifier that doesn't match
<identifier characters>?@kaldrako1 commented on GitHub (Mar 28, 2021):
Bc
@zafarkhaja commented on GitHub (Jan 13, 2024):
Two reasons that I can think of why it's the way it is, are
<alphanumeric identifier>and<digits>The purpose of the second one is not clear, as opposed to the purpose of differentiating between
<alphanumeric identifier>and<numeric identifier>in<pre-release>, which has to do with determining precedence (SemVer 11.iv.c).