0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Eric Park 2025-01-05 19:58:42 +00:00 committed by astrobot-houston
parent 3acc65444c
commit 694e4cd835

View file

@ -183,7 +183,7 @@ function createFileBasedRoutes(
validateSegment(segment, file);
const parts = getParts(segment, file);
const isIndex = isDir ? false : basename.substring(0, basename.lastIndexOf('.')) === "index";
const isIndex = isDir ? false : basename.substring(0, basename.lastIndexOf('.')) === 'index';
const routeSuffix = basename.slice(basename.indexOf('.'), -ext.length);
const isPage = validPageExtensions.has(ext);