Skip to content

Commit

Permalink
[Fix] Square brackets bypass Issue Yelp#857
Browse files Browse the repository at this point in the history
  • Loading branch information
tsigouris007 committed Jul 16, 2024
1 parent 74ce23f commit 23e5097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_secrets/filters/heuristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _get_indirect_reference_regex() -> Pattern:
# [^\v]* -> Something except line breaks
# [\]\)] -> End of indirect reference: ] or )
# )
return re.compile(r'([^\v=!:]*)\s*(:=?|[!=]{1,3})\s*([\w.-]+[\[\(][^\v]*[\]\)])')
return re.compile(r'([^\v=!:"<%>]*)\s*(:=?|[!=]{1,3})\s*([\w.-]+[\[\(][^\v]*[\]\)])')


def is_lock_file(filename: str) -> bool:
Expand Down

0 comments on commit 23e5097

Please sign in to comment.