BUGFIX partial match is no match
This commit is contained in:
parent
e9461bb39b
commit
525d9cd270
@ -106,11 +106,16 @@ func (f *Filter) match(line *string) []string {
|
|||||||
}
|
}
|
||||||
if f.pattern == nil {
|
if f.pattern == nil {
|
||||||
// No pattern, so this match will never actually be used
|
// No pattern, so this match will never actually be used
|
||||||
return []string{"."}
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(result) == len(f.pattern) {
|
||||||
return result
|
return result
|
||||||
|
} else {
|
||||||
|
// Incomplete match = no match.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Filter) sendActions(match []string, at time.Time) {
|
func (f *Filter) sendActions(match []string, at time.Time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user