Fix parsing regex, #1318

This commit is contained in:
Alexander Zobnin
2022-02-16 17:59:56 +03:00
parent f4fad8d58d
commit 0a4714f9e9
2 changed files with 38 additions and 2 deletions

View File

@@ -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)