Skip to content

Commit

Permalink
fix hang with very long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gpflaum committed Nov 24, 2020
1 parent 603fe0a commit 4a6db90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_secrets/plugins/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
DENYLIST_REGEX = r'|'.join(DENYLIST)
# Non-greedy match
OPTIONAL_WHITESPACE = r'\s*?'
OPTIONAL_NON_WHITESPACE = r'[^\s]*?'
OPTIONAL_NON_WHITESPACE = r'[^\s]{0,50}?'
QUOTE = r'[\'"]'
SECRET = r'[^\s]+'
SQUARE_BRACKETS = r'(\[\])'
Expand Down

0 comments on commit 4a6db90

Please sign in to comment.