mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
refactor(generic-api-key): remove hard-coded 'magic' (#1600)
This commit is contained in:
1 parent
748076d976
commit
c4526b2c55
4 files changed
+11
-23
No files matched your search
@@ -180,17 +180,6 @@ func printFinding(f report.Finding, noColor bool) {
|
||||
fmt.Println("")
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
func isWhitespace(ch byte) bool {
|
||||
return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r'
|
||||
}
|
||||
Reference in new issue
Block a user