mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
chore(generate): use \x60 instead of literal (#1702)
This commit is contained in:
1 parent
a3f623cc69
commit
b2cf03c7e3
2 files changed
+142
-142
No files matched your search
@@ -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
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user