beego:fix *.* router bug
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 |
| 344 | expr := "(.*)" | 344 | expr := "(.*)" |
| 345 | if part == "*.*" { | 345 | if part == "*.*" { |
| 346 | params[j] = ":path" | 346 | params[j] = ":path" |
| 347 | parts[i] = "([^.]+).([^.]+)" | 347 | parts[i] = `([^.]+)\.([^.]+)` |
| 348 | j++ | 348 | j++ |
| 349 | params[j] = ":ext" | 349 | params[j] = ":ext" |
| 350 | j++ | 350 | j++ | ... | ... |
-
Please register or sign in to post a comment