[GH-ISSUE #291] Pre-release and build meta examples contain invalid characters #2925

Closed
opened 2026-04-25 17:03:44 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @clphillips on GitHub (Jan 27, 2016).
Original GitHub issue: https://github.com/semver/semver/issues/291

The spec (version 2.0.0) states that:

Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]

Which applies to both pre-release (section 9) and build meta (section 10). However, the examples given include:

1.0.0-alpha.1, 1.0.0-0.3.7 ... 1.0.0-beta+exp.sha.5114f85

These clearly violate the rule as they contain full stops (.), which are not alphanumerics or hyphens (e.g. they fall outside [0-9A-Za-z-]).

Originally created by @clphillips on GitHub (Jan 27, 2016). Original GitHub issue: https://github.com/semver/semver/issues/291 The spec (version 2.0.0) states that: > Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-] Which applies to both **pre-release** (section 9) and **build meta** (section 10). **However**, the examples given include: > 1.0.0-alpha.1, 1.0.0-0.3.7 ... 1.0.0-beta+exp.sha.5114f85 These clearly violate the rule as they contain full stops (.), which are not alphanumerics or hyphens (e.g. they fall outside [0-9A-Za-z-]).
Author
Owner

@FichteFoll commented on GitHub (Jan 27, 2016):

Start reading the two sections at the beginning.

<!-- gh-comment-id:175870848 --> @FichteFoll commented on GitHub (Jan 27, 2016): Start reading the two sections at the beginning.
Author
Owner

@clphillips commented on GitHub (Jan 27, 2016):

MAY be denoted by appending a [hyphen|plus sign] and a series of dot separated identifiers immediately following the patch version

I swear it wasn't there before. ^_^

<!-- gh-comment-id:175881128 --> @clphillips commented on GitHub (Jan 27, 2016): > MAY be denoted by appending a [hyphen|plus sign] and a series of **dot separated identifiers** immediately following the patch version I swear it wasn't there before. ^_^
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#2925