[Question] Can I use 1.2.3-beta-3 instead of 1.2.3-beta.3? #507

Closed
opened 2026-02-17 12:10:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @korn176 on GitHub (Oct 28, 2021).

I just want to know if it’s the same

Originally created by @korn176 on GitHub (Oct 28, 2021). I just want to know if it’s the same
Author
Owner

@mkungla commented on GitHub (Oct 28, 2021):

isn't docs clear about it? https://semver.org/#spec-item-9

  • 1.2.3-beta.3 has 2 pre-release dot separated identifiers beta and 3 which both can be compared
    while
  • 1.2.3-beta-3 has 1 pre-release identifier beta-3 matching allowed regex [0-9A-Za-z-]

I think questions should be posted to places like Stack Overflow tag:semantic-versioning than here as issue tracker

so conclusions are 1. these are not the same and 2. You can use 1.2.3-beta-3 instead of 1.2.3-beta.3 if it is format you prefer.

@mkungla commented on GitHub (Oct 28, 2021): isn't docs clear about it? https://semver.org/#spec-item-9 - `1.2.3-beta.3` has 2 pre-release dot separated identifiers `beta` and `3` which both can be compared while - `1.2.3-beta-3` has 1 pre-release identifier `beta-3` matching allowed regex `[0-9A-Za-z-]` I think questions should be posted to places like [Stack Overflow tag:semantic-versioning](https://stackoverflow.com/questions/tagged/semantic-versioning) than here as issue tracker so conclusions are 1. these are not the same and 2. You can use 1.2.3-beta-3 instead of 1.2.3-beta.3 if it is format you prefer.
Author
Owner

@korn176 commented on GitHub (Oct 28, 2021):

Thanks!

@korn176 commented on GitHub (Oct 28, 2021): Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#507