mirror of
https://github.com/semver/semver.git
synced 2026-07-11 06:53:03 -05:00
[GH-ISSUE #788] Proposed regular expressions fit too many digits #1386
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 @rammi62 on GitHub (Dec 27, 2021).
Original GitHub issue: https://github.com/semver/semver/issues/788
The currently proposed regular expressions use the
\dmeta character, which is nowadays usually matching digits in the Unicode sense. So it does not only match ASCII 0-9, but also something like Devanagiri digits.As this is obviously wrong just use plain old
[0-9]instead.