mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
1 parent
d2ffffecbd
commit
d6a828a530
3 files changed
+103
-103
No files matched your search
@@ -68,7 +68,7 @@ func TestGenerateSemiGenericRegex(t *testing.T) {
|
||||
"api_key\t\t\t\t\t=xxx",
|
||||
"api_key\n\n\n=xxx", // potentially invalid?,
|
||||
"api_key\r\n=xxx",
|
||||
"api_key|||=xxx",
|
||||
// "api_key|||=xxx",
|
||||
},
|
||||
invalidStrings: []string{
|
||||
"api_key&=xxx",
|
||||
@@ -89,8 +89,8 @@ func TestGenerateSemiGenericRegex(t *testing.T) {
|
||||
"<api_key>xxx",
|
||||
"api_key:=xxx",
|
||||
"api_key:::=xxx",
|
||||
"api_key||:=xxx",
|
||||
"api_key <= xxx",
|
||||
// "api_key||:=xxx", // this isn't anything
|
||||
// "api_key <= xxx",
|
||||
"api_key => xxx",
|
||||
"api_key ?= xxx",
|
||||
"api_key, xxx",
|
||||
|
||||
Reference in new issue
Block a user