all repos — website @ 650ba32ff86706ab51730e70d7e253b49f17a6ef

My website

Don't register double-slashed paths

Alan Pearce
commit

650ba32ff86706ab51730e70d7e253b49f17a6ef

parent

b88c1dc84d04ced9c1d1749a458bc938124573bd

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M src/index.tssrc/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); } }