0
0
mirror of https://github.com/semver/semver.git synced 2025-08-31 02:05:29 +00:00

Removed the plus sign and added examples

The `+` seemed out of character with the rest of the spec. Following the
example of the pre-release section, we just spell out "sign" and provide
examples for those who don't know what a plus sign is. :)
This commit is contained in:
Haacked 2013-03-13 14:48:25 -07:00
parent 5114f8543a
commit 9c5829561e

View File

@ -79,12 +79,13 @@ MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Pre-release
versions satisfy but have a lower precedence than the associated normal
version. Examples: 1.0.0-alpha, 1.0.0-alpha.1, 1.0.0-0.3.7, 1.0.0-x.7.z.92.
1. Build metadata MAY be denoted by appending a plus + and a series of dot
1. 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 be comprised of only ASCII alphanumerics and hyphen
[0-9A-Za-z-]. Build metadata SHOULD be ignored when determining version
precedence. Thus two packages with the same version, but different build
metadata are considered to be the same version.
metadata are considered to be the same version. Examples: 1.0.0-alpha+001,
1.0.0+20130313144700, 1.0.0-beta+exp.sha.5114f85.
1. Precedence MUST be calculated by separating the version into major, minor,
patch and pre-release identifiers in that order (Build metadata does not figure