Merge pull request #748 from prymitive/anchor-rules
Anchor silence regex rules
This commit is contained in:
commit
c9163bd689
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue