0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Luiz Ferraz 2024-03-04 16:41:42 +00:00 committed by astrobot-houston
parent 819d20a89c
commit 347d3629b8

View file

@ -39,7 +39,7 @@ export function getRouteGenerator(
const toPath = compile(template + trailing);
return (params: object): string => {
const path = toPath(params);
// When generating an index from a rest parameter route, `path-to-regexp` will return an
// empty string instead "/". This causes an inconsistency with static indexes that may result
// in the incorrect routes being rendered.