Skip to content

Commit

Permalink
[str filter] fix bad regex dumps
Browse files Browse the repository at this point in the history
now if a regex is bad, sybil exits early with an error message
  • Loading branch information
okay committed Mar 7, 2020
1 parent 247bc08 commit 02c3cee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ func (t *Table) StrFilter(name string, op string, value string) StrFilter {
if op == "re" || op == "nre" {
strFilter.regex, err = regexp.Compile(value)
if err != nil {
Debug("REGEX ERROR", err, "WITH", value)
Error(err, "IN REGEX:", value)

}
}

Expand Down

0 comments on commit 02c3cee

Please sign in to comment.