|
@@ -432,12 +432,6 @@ func (set *UserMaskSet) Length() int {
|
432
|
432
|
return len(set.masks)
|
433
|
433
|
}
|
434
|
434
|
|
435
|
|
-// setRegexp generates a regular expression from the set of user mask
|
436
|
|
-// strings. Masks are split at the two types of wildcards, `*` and
|
437
|
|
-// `?`. All the pieces are meta-escaped. `*` is replaced with `.*`,
|
438
|
|
-// the regexp equivalent. Likewise, `?` is replaced with `.`. The
|
439
|
|
-// parts are re-joined and finally all masks are joined into a big
|
440
|
|
-// or-expression.
|
441
|
435
|
func (set *UserMaskSet) setRegexp() {
|
442
|
436
|
set.RLock()
|
443
|
437
|
maskExprs := make([]string, len(set.masks))
|