Skip to content

Commit 07e86a9

Browse files
committed
Fix problems combining end: false and strict: false
1 parent d9607ab commit 07e86a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/router/src/matcher/pathMatcher.ts

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ export function createRouteRecordMatcher(
4444
}
4545
}
4646

47+
if (options?.end === false && !options?.strict) {
48+
staticTokens.pop()
49+
}
50+
4751
const parser = staticPath
4852
? staticPathToParser(record.path, tokens, options)
4953
: tokensToParser(tokens, options)

0 commit comments

Comments
 (0)