mirror of
https://github.com/semver/semver.git
synced 2026-07-11 04:52:47 -05:00
Spec item 10 examples are confusing #413
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 @DannyS712 on GitHub (May 24, 2020).
The explanation that
is followed by examples that differ in build metadata, but do not have same precedence, because the first and third examples are pre-release versions and thus have lower precedence.
I suggest replacing the examples that include both pre-release and build metadata information with clearer examples that only have build metadata,
@jwdonahue commented on GitHub (Jun 9, 2020):
I don't think those examples were intended to be limited to just the last sentence. They are just a few random samples of build meta usage.
@chonton commented on GitHub (May 15, 2023):
Additionally, 1.0.0-beta+exp.sha.5114f85 does not meet the bnf specification. Specifically, the build identifier
5114f85is neither alphanumeric identifier nor digits.Also, 1.0.0+21AF26D3----117B344092BD does not meet the bnf specification. Specifically, the build identifier
117B344092BDis neither alphanumeric identifier nor digits.@jwdonahue commented on GitHub (May 16, 2023):
@chonton, specifically which character(s) in those strings are neither alpha or numeric? Were they encoded incorrectly?
I don't see the problem.
@chonton commented on GitHub (May 16, 2023):
I got it wrong. The build identifier cannot be digits, since it does not consist only of digit. It can be alphanumeric identifier. What confused me is that I cannot determine the difference between digits and alphanumeric identifier until the next '.' or end of input.