mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:21:30 +00:00
beego:fix *.* router bug
This commit is contained in:
parent
a2a6f47afa
commit
3f7e91e6a4
@ -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++
|
||||||
|
Loading…
Reference in New Issue
Block a user