[GH-ISSUE #249] Incorrect Example 10 #7148

Closed
opened 2026-06-20 16:58:55 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @thbwd on GitHub (Mar 26, 2015).
Original GitHub issue: https://github.com/semver/semver/issues/249

Point 10 of the specification says (emphasis added):

Build metadata MAY be denoted by appending a plus sign and a series of dot separated identifiers immediately following the patch or pre-release version. Identifiers MUST comprise _only ASCII alphanumerics and hyphen [0-9A-Za-z-]_. Identifiers MUST NOT be empty.

Then this example follows:

 1.0.0-beta+exp.sha.5114f85

However the identifier contains periods which are not included in [0-9A-Za-z-] nor are they alphanumerics or hyphens.

So is this example incorrect?

Originally created by @thbwd on GitHub (Mar 26, 2015). Original GitHub issue: https://github.com/semver/semver/issues/249 Point 10 of the specification says (emphasis added): > Build metadata MAY be denoted by appending a plus sign and a series of dot separated identifiers immediately following the patch or pre-release version. Identifiers MUST comprise **_only ASCII alphanumerics and hyphen [0-9A-Za-z-]**_. Identifiers MUST NOT be empty. Then this example follows: ``` 1.0.0-beta+exp.sha.5114f85 ``` However the identifier contains periods which are not included in `[0-9A-Za-z-]` nor are they alphanumerics or hyphens. So is this example incorrect?
Author
Owner

@crazedsanity commented on GitHub (Mar 26, 2015):

The given example is correct, as it refers explicitely to the identifiers, which are separated by the dots. So exp is valid, sha is valid, and 5114f85 is valid as individual identifers; the full metadata is then exp.sha.5114f85. Hopefully that makes sense.

<!-- gh-comment-id:86649894 --> @crazedsanity commented on GitHub (Mar 26, 2015): The given example is correct, as it refers explicitely to the identifiers, which are _separated_ by the dots. So `exp` is valid, `sha` is valid, and `5114f85` is valid as individual identifers; the full metadata is then `exp.sha.5114f85`. Hopefully that makes sense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#7148