Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function expand<T>(node: Node<T>, pending: unknown[], start: number, whole: bool
// first part, a route waits before one, and before literal text like it,
// which keeps the first of two that read the same. A route added whole
// goes after the routes waiting there.
if (segment.charCodeAt(0) === 123) {
if (segment[0] === '{') {
if (!whole && index > start) {
if (index < literals) {
literals = index
Expand Down
Loading