1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 08:30:54 +00:00

beego:fix *.* router bug

This commit is contained in:
astaxie 2014-05-26 10:15:56 +08:00
parent a2a6f47afa
commit 3f7e91e6a4

View File

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