diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts index 55d1f40..72708b6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -87,7 +87,7 @@ async function walkDirectory(root: string) { const absPath = path.join(root, relPath); const stat = await fs.stat(absPath); if (stat.isFile()) { - if (relPath.endsWith("index.html")) { + if (relPath.includes("index.html")) { const dir = relPath.replace("index.html", ""); registerFile(relPath, dir, absPath, stat); } else { |