chore(generate): use \x60 instead of literal (#1702)

This commit is contained in:
Richard Gomez authored and GitHub committed 2025-01-17 09:37:50 -06:00
1 parent a3f623cc69
commit b2cf03c7e3
2 files changed
+142 -142

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ const (
// boundaries for the secret
secretPrefixUnique = `\b(`
secretPrefix = "[`" + `'"\s=]{0,5}(`
secretSuffix = ")(?:[`" + `'"\s;]|$)`
secretPrefix = `[\x60'"\s=]{0,5}(`
secretSuffix = `)(?:[\x60'"\s;]|$)`
)
func GenerateSemiGenericRegex(identifiers []string, secretRegex string, isCaseInsensitive bool) *regexp.Regexp {
+140 -140
View File
File diff suppressed because it is too large. Load diff