mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[GH-ISSUE #1133] Does SemVer specify whether 1.0.0-rc.1 or 1.0.0-rc1 is the correct notation?
#4931
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @trueberryless on GitHub (Jul 4, 2025).
Original GitHub issue: https://github.com/semver/semver/issues/1133
I have looked through the examples on the website and the SemVer specification itself seems to stick to the dot-separated pre-release identifiers. However, since the specification doesn't clearly define if
rc1is also considered an identifier or not, both versions are valid. The RegEx even confirm that.Is the differentiation left open for interpretation deliberately or is the specification missing some clear definition? Because I'm really not sure if
1.0.0-rc1is by spec defined as valid, alto the RegEx allows it.Could someone with better SemVer spec knowledge explain this to me?
@ljharb commented on GitHub (Jul 4, 2025):
https://semver.org/#spec-item-9 describes it pretty thoroughly -
1.0.0-rc1is perfectly valid.