*Trim extra forward slashes

This commit is contained in:
Derrick Hammer 2022-08-05 02:40:55 -04:00
parent f22c4dd847
commit ffd3eec605
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ async function fileExists(
}
async function resolveIpns(hash: string, path: string): Promise<string> {
let fullPath = `${hash}/${path}`;
let fullPath = `${hash}/${path}`.replace(/\/+/, "/");
client = client as IPFS;