diff --git a/router.go b/router.go index 46453b11..b2c43254 100644 --- a/router.go +++ b/router.go @@ -344,7 +344,7 @@ func (p *ControllerRegistor) splitRoute(pattern string) (paramnums int, params m expr := "(.*)" if part == "*.*" { params[j] = ":path" - parts[i] = "([^.]+).([^.]+)" + parts[i] = `([^.]+)\.([^.]+)` j++ params[j] = ":ext" j++