fix: strip root /

This commit is contained in:
Derrick Hammer 2023-11-18 07:15:07 -05:00
parent 34e6e99287
commit c0892c10c3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ export default class S5Provider implements ContentProvider {
let found = false;
for (const indexFile of meta.tryFiles) {
urlPath = nodePath.join(urlPath, indexFile);
if (urlPath.startsWith("/")) {
urlPath = urlPath.substring(1);
}
if (urlPath in meta.paths) {
found = true;
break;