diff --git a/types/match.go b/types/match.go index 5a29e57b..b4b4f5b3 100644 --- a/types/match.go +++ b/types/match.go @@ -37,7 +37,7 @@ func (m *Matcher) Init() error { if !m.IsRegex { return nil } - re, err := regexp.Compile(m.Value) + re, err := regexp.Compile("^(?:" + m.Value + ")$") if err == nil { m.regex = re }