Merge pull request #748 from prymitive/anchor-rules

Anchor silence regex rules
This commit is contained in:
Fabian Reinartz 2017-05-09 10:11:01 +02:00 committed by GitHub
commit c9163bd689
1 changed files with 1 additions and 1 deletions

View File

@ -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
}