Commit 3f7e91e6 authored by astaxie's avatar astaxie

beego:fix *.* router bug

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
expr := "(.*)" expr := "(.*)"
if part == "*.*" { if part == "*.*" {
params[j] = ":path" params[j] = ":path"
parts[i] = "([^.]+).([^.]+)" parts[i] = `([^.]+)\.([^.]+)`
j++ j++
params[j] = ":ext" params[j] = ":ext"
j++ j++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment