Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant escape #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Dec 7, 2020

  1. Reports character escapes that are replaceable with the unescaped cha…

    …racter without a change in meaning. Note that inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
    frederikhors committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    fc39d6e View commit details
    Browse the repository at this point in the history
  2. Reports single char alternation (e.g. a|b|c|d) in a RegExp. It is sim…

    …pler to use a character class ([abcd]) instead. This usually also provides slightly better matching performance.
    frederikhors committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    2115ad7 View commit details
    Browse the repository at this point in the history