Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy committed Nov 25, 2024
1 parent f5529b9 commit e837463
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/universal-router-sync.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/universal-router-sync.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/universal-router.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/universal-router.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/UniversalRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ function matchRoute<R, C extends RouterContext>(

if (matchResult) {
const { path } = matchResult
matchResult.path = !end && path.charAt(path.length - 1) === '/' ? path.substr(1) : path
matchResult.path =
!end && path.charAt(path.length - 1) === '/' ? path.substr(1) : path
matchResult.params = { ...parentParams, ...matchResult.params }
return {
done: false,
Expand Down
3 changes: 2 additions & 1 deletion src/UniversalRouterSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ function matchRoute<R, C extends RouterContext>(

if (matchResult) {
const { path } = matchResult
matchResult.path = !end && path.charAt(path.length - 1) === '/' ? path.substr(1) : path
matchResult.path =
!end && path.charAt(path.length - 1) === '/' ? path.substr(1) : path
matchResult.params = { ...parentParams, ...matchResult.params }
return {
done: false,
Expand Down

0 comments on commit e837463

Please sign in to comment.