+3
-6
src/lib/navigation/router.tsx
+3
-6
src/lib/navigation/router.tsx
···
360
360
};
361
361
362
362
const matchRoute = (path: string): MatchedRoute | null => {
363
363
+
path = decodeURIComponent(path);
364
364
+
363
365
for (let idx = 0, len = _routes!.length; idx < len; idx++) {
364
366
const route = _routes![idx];
365
367
···
371
373
continue;
372
374
}
373
375
374
374
-
const rawParams = match.groups!;
375
375
-
const params: Record<string, string> = {};
376
376
-
377
377
-
for (const key in rawParams) {
378
378
-
params[key] = decodeURIComponent(rawParams[key]);
379
379
-
}
376
376
+
const params = match.groups!;
380
377
381
378
if (validate && !validate(params)) {
382
379
continue;