mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-29 19:49:28 -07:00
explanatory comment for CompileMasks
This commit is contained in:
@@ -46,6 +46,9 @@ func CompileGlob(glob string, submatch bool) (result *regexp.Regexp, err error)
|
||||
return regexp.Compile(buf.String())
|
||||
}
|
||||
|
||||
// Compile a list of globs into a single or-expression that matches any one of them.
|
||||
// This is used for channel ban/invite/exception lists. It's applicable to k-lines
|
||||
// but we're not using it there yet.
|
||||
func CompileMasks(masks []string) (result *regexp.Regexp, err error) {
|
||||
var buf bytes.Buffer
|
||||
buf.WriteString("^(")
|
||||
|
||||
Reference in New Issue
Block a user