mirror of
https://github.com/semver/semver.git
synced 2026-03-10 16:02:25 -05:00
Restrict "integers" to ASCII #249
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 @ogregoire on GitHub (Nov 9, 2016).
Currently, only the "free" texts is restricted to ASCII (in pre-release and build parts).
As far as I know, there are unicode digits that can form integers in other number ranges than
[0-9]: http://www.fileformat.info/info/unicode/category/Nd/list.htmSo currently a version like
꩑.꧒.᮳(U+AA51+.+U+A9D2+.+U+1BB3) is valid and can be understood as the same as1.2.3.The various problems with this are that:
𝟏.𝟐.𝟑is more legible for us westerners, but it's not ASCII, and therefore barely parseable without any proper unicode library.꩑.꧒.᮳) uses three different scripts to express integers:CHAM DIGIT ONE,JAVANESE DIGIT TWOandSUNDANESE DIGIT THREEand is still valid, because these digits, individually, still express "integer" numbers.To avoid such problems, please consider restricting the definition of integers to ASCII characters as well.
@ogregoire commented on GitHub (Nov 9, 2016):
Damn, I wrote this based on the spec at semver.org, not based on the latest
semver.mdfile, which include a BNF that remove this possibility.It's probably a good idea to update semver.org to entirely reflect this repository.
@Kotolegokot commented on GitHub (Jan 8, 2017):
This issue should probably be closed now