mirror of
https://github.com/semver/semver.git
synced 2026-07-11 06:53:03 -05:00
[GH-ISSUE #405] Weird alphanumeric-identifier grammar allowing "1.2.3----+----3.2.1" as a correct version number #1166
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 @nowox on GitHub (Nov 1, 2017).
Original GitHub issue: https://github.com/semver/semver/issues/405
I feel bizarre to allow
-after thedash. The given grammar perfectly allows version such asIs it really wanted?
@akalongman commented on GitHub (Nov 1, 2017):
If developer is stupid, you can not fix that via specifications or rules :)
@nowox commented on GitHub (Nov 1, 2017):
You can at least refuse the
-which is confusing...@jwdonahue commented on GitHub (Nov 28, 2017):
Hyphens are legal characters in prerelease and meta identifiers. There might actually be some automation out there that would generate such a perfectly valid version string, say, when the user failed to initialize some database/configuration fields.
This seems to be a duplicate of #360.
@jwdonahue commented on GitHub (Nov 28, 2017):
I believe this should be closed as won't fix. The tag identifiers are not empty and contain legal characters.
@haacked commented on GitHub (Nov 29, 2017):
Not really wanted, but not really unwanted. Feels like it'd needlessly complicate the spec to clean this scenario up. Closing as "won't fix"