mirror of
https://github.com/astaxie/beego.git
synced 2025-05-23 06:53:11 +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 := "(.*)"
|
||||
if part == "*.*" {
|
||||
params[j] = ":path"
|
||||
parts[i] = "([^.]+).([^.]+)"
|
||||
parts[i] = `([^.]+)\.([^.]+)`
|
||||
j++
|
||||
params[j] = ":ext"
|
||||
j++
|
||||
|
Loading…
x
Reference in New Issue
Block a user