Skip to content

Commit 822ee3d

Browse files
authored
Fix Unescaped anychar in Slack URL Regex
1 parent fefc670 commit 822ee3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect_secrets/plugins/slack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SlackDetector(RegexBasedDetector):
2121
re.compile(r'xox(?:a|b|p|o|s|r)-(?:\d+-)+[a-z0-9]+', flags=re.IGNORECASE),
2222
# Slack Webhooks
2323
re.compile(
24-
r'https://hooks.slack.com/services/T[a-zA-Z0-9_]+/B[a-zA-Z0-9_]+/[a-zA-Z0-9_]+',
24+
r'https://hooks\.slack\.com/services/T[a-zA-Z0-9_]+/B[a-zA-Z0-9_]+/[a-zA-Z0-9_]+',
2525
flags=re.IGNORECASE | re.VERBOSE,
2626
),
2727
)

0 commit comments

Comments
 (0)