Skip to content

Commit

Permalink
↪️ Merge pull request #477 from turbo/patch-1
Browse files Browse the repository at this point in the history
Fix Unescaped anychar in Slack URL RegEx
  • Loading branch information
KevinHock authored Nov 9, 2021
2 parents fefc670 + 822ee3d commit 067bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_secrets/plugins/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SlackDetector(RegexBasedDetector):
re.compile(r'xox(?:a|b|p|o|s|r)-(?:\d+-)+[a-z0-9]+', flags=re.IGNORECASE),
# Slack Webhooks
re.compile(
r'https://hooks.slack.com/services/T[a-zA-Z0-9_]+/B[a-zA-Z0-9_]+/[a-zA-Z0-9_]+',
r'https://hooks\.slack\.com/services/T[a-zA-Z0-9_]+/B[a-zA-Z0-9_]+/[a-zA-Z0-9_]+',
flags=re.IGNORECASE | re.VERBOSE,
),
)
Expand Down

0 comments on commit 067bb21

Please sign in to comment.