mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat: tweak rules (#1608)
This commit is contained in:
1 parent
43fae355e6
commit
5c2e8132f2
8 files changed
+188
-139
No files matched your search
@@ -15,9 +15,9 @@ const (
|
||||
caseInsensitive = `(?i)`
|
||||
|
||||
// identifier prefix (just an ignore group)
|
||||
identifierCaseInsensitivePrefix = `[\w.-]{0,10}?(?i:`
|
||||
identifierCaseInsensitivePrefix = `[\w.-]{0,50}?(?i:`
|
||||
identifierCaseInsensitiveSuffix = `)`
|
||||
identifierPrefix = `[\w.-]{0,10}?(?:`
|
||||
identifierPrefix = `[\w.-]{0,50}?(?:`
|
||||
identifierSuffix = `)(?:[ \t\w.-]{0,20})(?:[\s|']|[\s|"]){0,3}`
|
||||
|
||||
// commonly used assignment operators or function call
|
||||
|
||||
Reference in new issue
Block a user