mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
add lazy quantifier to prefixregex (#2466)
This commit is contained in:
parent
40bbab8add
commit
834163acf5
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ func CleanResults(results []Result) []Result {
|
|||
func PrefixRegex(keywords []string) string {
|
||||
pre := `(?i)(?:`
|
||||
middle := strings.Join(keywords, "|")
|
||||
post := `)(?:.|[\n\r]){0,40}`
|
||||
post := `)(?:.|[\n\r]){0,40}?`
|
||||
return pre + middle + post
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue