mirror of
https://github.com/semver/semver.git
synced 2026-07-11 05:12:48 -05:00
Confirm semver spec for mixed alpha-numeric #347
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 @phil-davis on GitHub (Oct 29, 2018).
Looking at the spec:
"Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found as follows: identifiers consisting of only digits are compared numerically and identifiers with letters or hyphens are compared lexically in ASCII sort order. Numeric identifiers always have lower precedence than non-numeric identifiers."
and you will cause some people (who don't read the spec properly) to wonder why alpha releases
alpha10andalpha11are followed byalpha2in the style of the example in the spec.
Yes?
@jwdonahue commented on GitHub (Nov 25, 2018):
Yes, you have listed them in ascending order.
@phil-davis, unless you have further questions, please close this issue at your earliest possible convenience.
@phil-davis commented on GitHub (Nov 25, 2018):
Thanks, I was just looking for confirmation of my reading of the spec - and that the example here might help make the situation clear for someone who finds this in future. Closing.