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

Make regex patterns raw strings #605

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

Commits on Apr 9, 2021

  1. Make all regex patterns raw strings

    Python 3 interprets string literals as unicode strings, so we need to
    explicitly define regex patterns as raw strings.
    
    Silences warnings like 'DeprecationWarning: invalid escape sequence \S'.
    
    Search pattern: [\W]re\.[^\.(]+\(['"]
    benjaminhwilliams committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    d6ae24e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e13909e View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2021

  1. Catch a few more regex patterns

    Search pattern used here:  \Wre\.\w+\(\s*['"]
    benjaminhwilliams committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    ec1e6ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8dc259b View commit details
    Browse the repository at this point in the history