-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Hi,
Unless I'm mistaken there's a redundant count in this check:
caddy/modules/caddyhttp/matchers.go
Lines 457 to 460 in f4840cf
if strings.Count(matchPattern, "*") == 2 && | |
strings.HasPrefix(matchPattern, "*") && | |
strings.HasSuffix(matchPattern, "*") && | |
strings.Count(matchPattern, "*") == 2 { |
if it's indeed a mistake I'll do a PR ASAP.
Metadata
Metadata
Assignees
Labels
No labels