espelhamento de
https://github.com/astaxie/beego.git
sincronizado 2025-07-17 18:52:16 +00:00
beego: support not-empty value in router fix #555
Esse commit está contido em:
@@ -109,6 +109,10 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM
|
||||
expr = `([\w]+)`
|
||||
part = part[:lindex]
|
||||
}
|
||||
//marth /user/:id! non-empty value
|
||||
} else if part[len(part)-1] == '!' {
|
||||
expr = `(.+)`
|
||||
part = part[:len(part)-1]
|
||||
}
|
||||
params[j] = part
|
||||
parts[i] = expr
|
||||
|
Referência em uma nova issue
Block a user