Anchor config regexes

This commit is contained in:
Fabian Reinartz 2015-11-19 08:51:52 +01:00
parent a94c0f4e82
commit 3386cea9df
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error {
if err := unmarshal(&s); err != nil {
return err
}
regex, err := regexp.Compile(s)
regex, err := regexp.Compile("^(?:" + s + ")$")
if err != nil {
return err
}