Skip to content

Commit a4dd70c

Browse files
committed
fix: use decodeURIComponent
related: #61 (comment)
1 parent 62d18dc commit a4dd70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function shortenRepoUrl(href, currentUrl = 'https://github.com') {
9191
searchParams,
9292
hash,
9393
} = url;
94-
const pathname = decodeURIComponent(punycode.toUnicode(url.pathname));
94+
const pathname = decodeURIComponent(url.pathname);
9595

9696
const pathnameParts = pathname.slice(1).split('/'); // ['user', 'repo', 'pull', '342']
9797
const repoPath = pathnameParts.slice(2).join('/'); // 'pull/342'

0 commit comments

Comments
 (0)