all repos — homestead @ cf8e3392fed97daf384b984d72c8401e4446cdab

Code for my website

Don't register double-slashed paths

Alan Pearce
commit

cf8e3392fed97daf384b984d72c8401e4446cdab

parent

977690e69d98d9830bb0851755643cc06ef3a316

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

jump to
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); } }