From fc918710692c08ac792d945493c979043fcbf049 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Wed, 30 Nov 2022 19:20:17 -0800 Subject: [PATCH] Escape dashes in the `1.0.0+21AF26D3----117B344092BD` example. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- semver.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semver.md b/semver.md index 5899d58..2d4037c 100644 --- a/semver.md +++ b/semver.md @@ -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.