mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
maybe fix out of bounds (#843)
This commit is contained in:
1 parent
48b79facfa
commit
d8cd93cabe
2 files changed
+7
-3
No files matched your search
+4
-1
@@ -4,6 +4,7 @@ import (
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
//go:embed gitleaks.toml
|
||||
@@ -64,7 +65,9 @@ func (vc *ViperConfig) Translate() (Config, error) {
|
||||
if r.Keywords == nil {
|
||||
r.Keywords = []string{}
|
||||
} else {
|
||||
keywords = append(keywords, r.Keywords...)
|
||||
for _, k := range r.Keywords {
|
||||
keywords = append(keywords, strings.ToLower(k))
|
||||
}
|
||||
}
|
||||
|
||||
if r.Tags == nil {
|
||||
|
||||
Reference in new issue
Block a user