Don't register double-slashed paths
1 file changed, 1 insertion(+), 1 deletion(-)
jump to
M src/index.ts → src/index.ts
@@ -88,7 +88,7 @@ } else if (stat.isFile()) { if (pathname.startsWith("index.html")) { const dir = relPath.replace("index.html", ""); registerFile(relPath, dir, absPath, stat); - if (dir !== ".") { + if (dir !== "") { registerFile(relPath, dir + path.sep, absPath, stat); } }