mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
3acc65444c
commit
694e4cd835
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ function createFileBasedRoutes(
|
||||||
validateSegment(segment, file);
|
validateSegment(segment, file);
|
||||||
|
|
||||||
const parts = getParts(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 routeSuffix = basename.slice(basename.indexOf('.'), -ext.length);
|
||||||
const isPage = validPageExtensions.has(ext);
|
const isPage = validPageExtensions.has(ext);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue