File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ var _ detectors.Detector = Scanner{}
2020
2121var (
2222 tokenPats = map [string ]* regexp.Regexp {
23- "Slack Bot Token" : regexp .MustCompile (`xoxb\-[0-9]{10,13}\-[0-9]{10,13}[a-z0 -9\-]*` ),
24- "Slack User Token" : regexp .MustCompile (`xoxp\-[0-9]{10,13}\-[0-9]{10,13}[a-z0 -9\-]*` ),
25- "Slack Workspace Access Token" : regexp .MustCompile (`xoxa\-[0-9]{10,13}\-[0-9]{10,13}[a-z0 -9\-]*` ),
26- "Slack Workspace Refresh Token" : regexp .MustCompile (`xoxr\-[0-9]{10,13}\-[0-9]{10,13}[a-z0 -9\-]*` ),
23+ "Slack Bot Token" : regexp .MustCompile (`xoxb\-[0-9]{10,13}\-[0-9]{10,13}[a-zA-Z0 -9\-]*` ),
24+ "Slack User Token" : regexp .MustCompile (`xoxp\-[0-9]{10,13}\-[0-9]{10,13}[a-zA-Z0 -9\-]*` ),
25+ "Slack Workspace Access Token" : regexp .MustCompile (`xoxa\-[0-9]{10,13}\-[0-9]{10,13}[a-zA-Z0 -9\-]*` ),
26+ "Slack Workspace Refresh Token" : regexp .MustCompile (`xoxr\-[0-9]{10,13}\-[0-9]{10,13}[a-zA-Z0 -9\-]*` ),
2727 }
2828 verifyURL = "https://slack.com/api/auth.test"
2929)
You can’t perform that action at this time.
0 commit comments