From 086181d0d788c674c23240050f761eb996709bb3 Mon Sep 17 00:00:00 2001 From: Chris Johnson <49479599+workeffortwaste@users.noreply.github.com> Date: Thu, 17 Feb 2022 08:32:50 +0000 Subject: [PATCH] Remove unused var --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d5dea2e..dfbc1f0 100644 --- a/index.js +++ b/index.js @@ -241,7 +241,7 @@ const urlHelper = (url) => { if (url.includes('//codepen.io/')) { /* Use regex groups to reformat the URL */ const regex = /\/\/codepen.io\/(.*?)\/pen\/(.*?)(?:\/|\?|$)/g - const [match, user, id] = regex.exec(url) + const [match,, id] = regex.exec(url) /* Return the debug codepen url if a match is found */ return match ? `https://cdpn.io/pen/debug/${id}` : url