safe-regex icon indicating copy to clipboard operation
safe-regex copied to clipboard

safe-regex breaks regex

Open SimonSiefke opened this issue 3 years ago • 0 comments

/\p{L}/u.test('Θ') // true

get transformed into

/p{L}/u.test('Θ') // false

which produces wrong output.

(originally reported at https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1754)

SimonSiefke avatar Mar 24 '22 15:03 SimonSiefke