diff --git a/copy-tag/src/index.js b/copy-tag/src/index.js index 7be97dc..b76e5fc 100644 --- a/copy-tag/src/index.js +++ b/copy-tag/src/index.js @@ -27,7 +27,7 @@ async function main() { } let pUrl; try { - pUrl = new URL(u); + pUrl = new URL(url); } catch(e) { throw new Error(`Not valid format of url: "${url}". Error: ${e}`); }