Skip to content

Commit

Permalink
Remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
workeffortwaste committed Feb 17, 2022
1 parent 2c875a1 commit 086181d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 086181d

Please sign in to comment.