Skip to content

safe-regex breaks regex #51

@SimonSiefke

Description

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

get transformed into

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

which produces wrong output.

(originally reported at sindresorhus/eslint-plugin-unicorn#1754)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions