*Trim extra forward slashes
This commit is contained in:
parent
f22c4dd847
commit
ffd3eec605
|
@ -202,7 +202,7 @@ async function fileExists(
|
||||||
}
|
}
|
||||||
|
|
||||||
async function resolveIpns(hash: string, path: string): Promise<string> {
|
async function resolveIpns(hash: string, path: string): Promise<string> {
|
||||||
let fullPath = `${hash}/${path}`;
|
let fullPath = `${hash}/${path}`.replace(/\/+/, "/");
|
||||||
|
|
||||||
client = client as IPFS;
|
client = client as IPFS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue