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

Fix extracting references from regex match #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 3, 2022

  1. Fix extracting references from regex match

    The regex uses separate capture groups for alternative expressions that
    match a single-quoted or a double-quoted string. This is more robust
    with strings that may contain quotes.
    
    However the code using the match objects doesn't currently take the two
    capture groups into account and always expects the results in group 1,
    which only matches double-quoted strings.
    
    This change introduces a check so that if group 1 is None, the function
    will use the matched substring in group 2.
    
    Closes arthepsy#36
    ikey8k committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    c5dede6 View commit details
    Browse the repository at this point in the history