Skip to content

Commit

Permalink
Merge pull request #373 from gpflaum/long-lines
Browse files Browse the repository at this point in the history
fix hang with very long lines
  • Loading branch information
domanchi committed Nov 30, 2020
2 parents 603fe0a + 4a6db90 commit 5b262f2
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 5b262f2

Please sign in to comment.