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

Prevent attempts at nesting character sets in regex filter #389

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

Commits on Mar 17, 2023

  1. Prevent attempts at nesting charsets in regex filter

    Not sure how I didn't catch this when testing a couple years ago.
    Basically, nesting character sets is impossible in Python's regex, which
    is what my filter code tried to do because it wasn't checking for IN
    tokens. This adds that check and performs confusable insertion in place
    for those sets. Also cleans up some of the code in that area.
    JoshuaS3 committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    3cf86c8 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2023

  1. Add support for range in character set

    Also missed this. "a-z" in [a-z] is tokenized as (RANGE, (97, 122)).
    This commit adds support for those tokens.
    JoshuaS3 committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    d98e3c7 View commit details
    Browse the repository at this point in the history