mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
feat(rules): make case insensitivity optional (#1215)
This commit is contained in:
1 parent
9fb36b242d
commit
18283bb48e
85 files changed
+151
-136
No files matched your search
@@ -10,7 +10,7 @@ func DiscordAPIToken() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Discord API key",
|
||||
RuleID: "discord-api-token",
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, hex("64")),
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, hex("64"), true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{"discord"},
|
||||
}
|
||||
@@ -27,7 +27,7 @@ func DiscordClientID() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Discord client ID",
|
||||
RuleID: "discord-client-id",
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, numeric("18")),
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, numeric("18"), true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{"discord"},
|
||||
}
|
||||
@@ -44,7 +44,7 @@ func DiscordClientSecret() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Discord client secret",
|
||||
RuleID: "discord-client-secret",
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, alphaNumericExtended("32")),
|
||||
Regex: generateSemiGenericRegex([]string{"discord"}, alphaNumericExtended("32"), true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{"discord"},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user