Add support for ignore regexes in filters

This commit is contained in:
Tom Hubrecht
2024-02-02 15:21:29 +01:00
committed by Tom Hubrecht
parent c076177d2b
commit 8afa6281f4
5 changed files with 25 additions and 0 deletions

View File

@ -62,6 +62,12 @@ func runCommands(commands [][]string, moment string) bool {
}
func (p *Pattern) notAnIgnore(match *string) bool {
for _, regex := range p.compiledIgnoreRegex {
if regex.MatchString(*match) {
return false
}
}
for _, ignore := range p.Ignore {
if ignore == *match {
return false