Fix parsing regex, #1318
This commit is contained in:
@@ -64,7 +64,7 @@ func splitKeyParams(paramStr string) []string {
|
||||
}
|
||||
|
||||
func parseFilter(filter string) (*regexp.Regexp, error) {
|
||||
regex := regexp.MustCompile(`^/(.+)/(.*)$`)
|
||||
regex := regexp.MustCompile(`^/(.+)/([imsU]*)$`)
|
||||
flagRE := regexp.MustCompile("[imsU]+")
|
||||
|
||||
matches := regex.FindStringSubmatch(filter)
|
||||
|
||||
Reference in New Issue
Block a user