1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-16 02:32:17 +00:00

beego: router support param has _

This commit is contained in:
astaxie
2014-06-11 09:33:35 +08:00
parent 7c0d0900ac
commit 2f8a70d548
2 changed files with 5 additions and 5 deletions

View File

@@ -284,7 +284,7 @@ func splitSegment(key string) (bool, []string, string) {
var expt []rune
var skipnum int
params := []string{}
reg := regexp.MustCompile(`[a-zA-Z0-9]+`)
reg := regexp.MustCompile(`[a-zA-Z0-9_]+`)
for i, v := range key {
if skipnum > 0 {
skipnum -= 1