chore: remove unnecessary capture groups (#1460)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-08-07 12:09:16 -05:00
1 parent 80bd1779e3
commit b4009bfba4
11 files changed
+28 -30

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ func Doppler() *config.Rule {
r := config.Rule{
Description: "Discovered a Doppler API token, posing a risk to environment and secrets management security.",
RuleID: "doppler-api-token",
Regex: regexp.MustCompile(`(dp\.pt\.)(?i)[a-z0-9]{43}`),
Regex: regexp.MustCompile(`dp\.pt\.(?i)[a-z0-9]{43}`),
Keywords: []string{"doppler"},
}