fix(routergroup.go): disallow that a method don't match regEnLetter

Signed-off-by: bestgopher <84328409@qq.com>
This commit is contained in:
bestgopher 2023-09-13 23:13:42 +08:00
parent c2ba8f19ec
commit d4022e3f02
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (group *RouterGroup) Any(relativePath string, handlers ...HandlerFunc) IRou
// Match registers a route that matches the specified methods that you declared.
func (group *RouterGroup) Match(methods []string, relativePath string, handlers ...HandlerFunc) IRoutes {
for _, method := range methods {
group.handle(method, relativePath, handlers)
group.Handle(method, relativePath, handlers...)
}
return group.returnObj()