Skip to content

Commit

Permalink
Fix handling import URLs after dependency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Jul 30, 2024
1 parent 2bf285c commit 3754cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ROUTES = {
"legacy-import": "/:importData"
} satisfies Record<string, string>;

const ROUTES_MATCH = Object.fromEntries(Object.entries(ROUTES).map(([name, pattern]) => [name, match(pattern, { decode: decodeURIComponent, strict: true })]));
const ROUTES_MATCH = Object.fromEntries(Object.entries(ROUTES).map(([name, pattern]) => [name, match(pattern, { decode: decodeURIComponent, trailing: false })]));

const ROUTES_COMPILE = Object.fromEntries(Object.entries(ROUTES).map(([name, pattern]) => [name, compile(pattern, { encode: encodeURIComponent })]));

Expand Down

0 comments on commit 3754cb8

Please sign in to comment.