Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Aug 21, 2023
1 parent d426341 commit 27f1112
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 @@ -203,7 +203,7 @@ function shortenURL(href, currentUrl = 'https://github.com') {
}

if (wiki) {
return `${repoUrl} (wiki) ${decodeURIComponent((wiki + (hash ? ' (' + hash.substring(1) + ')' : '')).replace(/-/g, ' '))}`
return `${repoUrl} (wiki) ${decodeURIComponent((wiki + (hash ? ' (' + hash.substring(1) + ')' : '')).replaceAll(/-/g, ' '))}`
}

// Shorten URLs that would otherwise be natively shortened
Expand Down

0 comments on commit 27f1112

Please sign in to comment.