Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Mar 24, 2021
2 parents cf91322 + 1cc5652 commit 9e52eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions pkg/matchers/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import "github.com/sahilm/fuzzy"

func IsMatchFuzz(pattern string, s []string) bool {
matches := fuzzy.Find(pattern, s)
if len(matches) > 0 {
return true
}

return false
return len(matches) > 0
}
9 changes: 4 additions & 5 deletions pkg/teler/teler.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ func Analyze(options *common.Options, logs *gonx.Entry) (bool, map[string]string
threat := reflect.ValueOf(&rsc.Threat[i]).Elem()
cat := threat.FieldByName("Category").String()
con := threat.FieldByName("Content").String()
exc := threat.FieldByName("Exclude").Bool()

datasets[cat] = map[string]string{}
datasets[cat]["content"] = con

if exc {
if threat.FieldByName("Exclude").Bool() {
continue
}

datasets[cat] = map[string]string{}
datasets[cat]["content"] = con
}
}

Expand Down

0 comments on commit 9e52eff

Please sign in to comment.