allow trailing slash for routes - fixes #2763

This commit is contained in:
Stephan Hoyer 2022-04-18 16:51:13 +02:00
parent 8c149d3653
commit 517661a606
3 changed files with 18 additions and 2 deletions

View file

@ -112,7 +112,7 @@ o.spec("parsePathname", function() {
o("parses route + query, ignores hash with lots of junk slashes", function() {
var data = parsePathname("//route/////foo//?a=1&b=2#c=3&d=4")
o(data).deepEquals({
path: "/route/foo",
path: "/route/foo/",
params: {a: "1", b: "2"}
})
})