Skip to content

Commit

Permalink
setup regex in main
Browse files Browse the repository at this point in the history
  • Loading branch information
GwynHannay committed Aug 20, 2020
1 parent a766b34 commit a690809
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,18 @@ func main() {
continue
}

if c.regexignore != "" {
if len(c.regexignore) > 0 {
matched, _ := regexp.MatchString(c.regexignore,res.String())

if matched {
if matched {
continue
}
}

if len(c.regexkeep) > 0 {
matched, _ := regexp.MatchString(c.regexkeep,res.String())

if not matched {
continue
}
}
Expand Down

0 comments on commit a690809

Please sign in to comment.