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:
Lucas Garron
2022-11-30 19:20:17 -08:00
committed by GitHub
parent d5d9e738e3
commit fc91871069

View File

@@ -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.