Skip to content

Commit 48a0eaa

Browse files
committed
just check pattern prefix
1 parent 1b42c68 commit 48a0eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gno.land/p/demo/mux/router.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (r *Router) Render(reqPath string) string {
3232
patPart := patParts[i]
3333
reqPart := reqParts[i]
3434

35-
if strings.Contains(patPart, "?") {
35+
if strings.HasPrefix(patPart, "?") {
3636
continue
3737
}
3838
if patPart == "*" {

0 commit comments

Comments
 (0)