Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Escape regex properly #275
Description of the Change
Add in escape rule, so we don't get false positives for groups, etc.
I could have tried finding all proper escapable characters, but that's difficult. My experiments with regex101.com indicate escaping any character will count as an escape, in some way or another (e.g.,
No more leaking regex when opening parentheses are supposed to be escaped
Unicode escapes are more complicated, but I believe they are not supported at all currently. This will not break them.