From 1e73b00ee9596168eafe23697db2465a73d72274 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 25 Dec 2024 20:21:10 -0600 Subject: [PATCH] bug fixes --- src/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index b99b82b..59aee5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,9 +50,11 @@ async function combinePath(path: string, tryAgain = true): Promise { if (find(pathDir, dirs)) { return __dirname + path; } else { - const str = await combinePath(path + ".html", false); - if (str !== __dirname + "/webpage/index.html") { - return str; + if (!path.includes(".")) { + const str = await combinePath(path + ".html", false); + if (str !== __dirname + "/webpage/index.html") { + return str; + } } if (devmode && tryAgain) { dirs = await getDirectories(__dirname);