You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the regex is Unicode-aware and the i flag is set, it also matches other Unicode characters that get canonicalized to one of the characters above through case folding.
↑This makes U+017F and U+212A matches \w in iu flag.
The text was updated successfully, but these errors were encountered:
Information:
eslint-plugin-regexp
version: 2.7.0See https://github.com/fabian-hiller/valibot/blob/main/library/package.json and https://github.com/fabian-hiller/valibot/blob/main/pnpm-lock.yaml
Description
When both
i
andu
flags are set,\w
matches U+017F & U+212A, too. This plugin must not emit prefer-w on just[0-9a-z_]
under that condition.eslint/eslint#19474 (comment)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class_escape#w
↑This makes U+017F and U+212A matches
\w
iniu
flag.The text was updated successfully, but these errors were encountered: