3f7e91e6 by astaxie

beego:fix *.* router bug

1 parent a2a6f47a
...@@ -344,7 +344,7 @@ func (p *ControllerRegistor) splitRoute(pattern string) (paramnums int, params m ...@@ -344,7 +344,7 @@ func (p *ControllerRegistor) splitRoute(pattern string) (paramnums int, params m
344 expr := "(.*)" 344 expr := "(.*)"
345 if part == "*.*" { 345 if part == "*.*" {
346 params[j] = ":path" 346 params[j] = ":path"
347 parts[i] = "([^.]+).([^.]+)" 347 parts[i] = `([^.]+)\.([^.]+)`
348 j++ 348 j++
349 params[j] = ":ext" 349 params[j] = ":ext"
350 j++ 350 j++
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!