Skip to content

Commit

Permalink
Bulletproof the XREF_TAG_PATTERN for overmatching
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrinkhoff committed Nov 9, 2023
1 parent 9e0318f commit 1b1d063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion troubadix/helper/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_script_tag_pattern(script_tag: ScriptTag) -> re.Pattern:

_XREF_TAG_PATTERN = (
r'script_xref\(\s*name\s*:\s*(?P<quote>[\'"])(?P<name>{name})(?P=quote)\s*,'
r'\s*value\s*:\s*(?P<quote2>[\'"])?(?P<value>{value})(?P=quote2)?\s*\)\s*;'
r'\s*value\s*:\s*(?P<quote2>[\'"])(?P<value>{value})(?P=quote2)\s*\)\s*;'
)


Expand Down

0 comments on commit 1b1d063

Please sign in to comment.