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?
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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):
Then this example follows:
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?
@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
expis valid,shais valid, and5114f85is valid as individual identifers; the full metadata is thenexp.sha.5114f85. Hopefully that makes sense.