mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
maintaining parity between current master
This commit is contained in:
1 parent
6fed917106
commit
c53e0fc98d
2 files changed
+30
-4
No files matched your search
@@ -94,3 +94,14 @@ func printFinding(f report.Finding) {
|
||||
b, _ = json.MarshalIndent(f, "", " ")
|
||||
fmt.Println(string(b))
|
||||
}
|
||||
|
||||
func containsDigit(s string) bool {
|
||||
for _, c := range s {
|
||||
switch c {
|
||||
case '1', '2', '3', '4', '5', '6', '7', '8', '9':
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in new issue
Block a user