safe-regex
safe-regex copied to clipboard
safe-regex breaks regex
/\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)