mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +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
|
// boundaries for the secret
|
||||||
secretPrefixUnique = `\b(`
|
secretPrefixUnique = `\b(`
|
||||||
secretPrefix = "[`" + `'"\s=]{0,5}(`
|
secretPrefix = `[\x60'"\s=]{0,5}(`
|
||||||
secretSuffix = ")(?:[`" + `'"\s;]|$)`
|
secretSuffix = `)(?:[\x60'"\s;]|$)`
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateSemiGenericRegex(identifiers []string, secretRegex string, isCaseInsensitive bool) *regexp.Regexp {
|
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