This commit is contained in:
Shivaram Lingamneni 2020-05-06 01:07:06 -04:00
parent d37af694af
commit 984794eb1e
2 changed files with 30 additions and 1 deletions

View file

@ -452,7 +452,7 @@ func (set *UserMaskSet) setRegexp() {
set.RUnlock()
if index > 0 {
expr := "^" + strings.Join(maskExprs, "|") + "$"
expr := "^(" + strings.Join(maskExprs, "|") + ")$"
re, _ = regexp.Compile(expr)
}