From ffd3eec6050e158a4318c84f43c9b2896dad9276 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Aug 2022 02:40:55 -0400 Subject: [PATCH] *Trim extra forward slashes --- src/rpc/ipfs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/ipfs.ts b/src/rpc/ipfs.ts index 56f60e7..23b7f86 100644 --- a/src/rpc/ipfs.ts +++ b/src/rpc/ipfs.ts @@ -202,7 +202,7 @@ async function fileExists( } async function resolveIpns(hash: string, path: string): Promise { - let fullPath = `${hash}/${path}`; + let fullPath = `${hash}/${path}`.replace(/\/+/, "/"); client = client as IPFS;