提交 3f7e91e6 编写于 作者: A astaxie

beego:fix *.* router bug

上级 a2a6f47a
......@@ -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++
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册