mirror of
https://github.com/semver/semver.git
synced 2026-03-11 17:48:09 -05:00
Escape dashes in the 1.0.0+21AF26D3----117B344092BD example.
When unescaped, the first three dashes are rendered as an em dash at https://semver.org/#spec-item-10 > ... 1.0.0+21AF26D3—-117B344092BD. Adding the backspaces prevents this rendering issue.
This commit is contained in:
@@ -107,7 +107,7 @@ Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-].
|
||||
Identifiers MUST NOT be empty. Build metadata MUST be ignored when determining
|
||||
version precedence. Thus two versions that differ only in the build metadata,
|
||||
have the same precedence. Examples: 1.0.0-alpha+001, 1.0.0+20130313144700,
|
||||
1.0.0-beta+exp.sha.5114f85, 1.0.0+21AF26D3----117B344092BD.
|
||||
1.0.0-beta+exp.sha.5114f85, 1.0.0+21AF26D3\-\-\-\-117B344092BD.
|
||||
|
||||
1. Precedence refers to how versions are compared to each other when ordered.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user