[GH-ISSUE #788] Proposed regular expressions fit too many digits #6510

Open
opened 2026-06-17 05:20:10 -05:00 by GiteaMirror · 0 comments
Owner

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.

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 `\d`meta 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](https://en.wikipedia.org/wiki/Devanagari_numerals). As this is obviously wrong just use plain old `[0-9]`instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#6510