diff --git a/.gitignore b/.gitignore index cc78e2c..c6bba59 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,3 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* -node_modules diff --git a/src/index.js b/src/index.js index c1f3987..5a39245 100644 --- a/src/index.js +++ b/src/index.js @@ -69,7 +69,7 @@ app.post("/", (req, res) => { .split("\n") .find((line) => line.includes("open /tmp")) .trim(); - const cidFromPath = openLine.split("/").pop(); + const cidFromPath = openLine.split("/").pop().trim(); const url = stdout .split("\n")