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
@@ -32,7 +32,7 @@ func HashicorpField() *config.Rule {
RuleID: "hashicorp-tf-password",
Regex: generateSemiGenericRegex(keywords, fmt.Sprintf(`"%s"`, alphaNumericExtended("8,20")), true),
Keywords: keywords,
Path: regexp.MustCompile(`\.(tf|hcl)$`),
Path: regexp.MustCompile(`(?i)\.(?:tf|hcl)$`),
}
tps := map[string]string{