We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b1d95 commit 92a23a3Copy full SHA for 92a23a3
src/uri.ts
@@ -6,9 +6,9 @@ export function resolveURI(uri: string): { repo: string; rev: string; path: stri
6
const url = new URL(uri)
7
if (url.protocol === 'git:') {
8
return {
9
- repo: (url.host + url.pathname).replace(/^\/*/, '').toLowerCase(),
10
- rev: url.search.slice(1).toLowerCase(),
11
- path: url.hash.slice(1),
+ repo: (url.host + decodeURIComponent(url.pathname)).replace(/^\/*/, ''),
+ rev: decodeURIComponent(url.search.slice(1)),
+ path: decodeURIComponent(url.hash.slice(1)),
12
}
13
14
throw new Error(`unrecognized URI: ${JSON.stringify(uri)} (supported URI schemes: git)`)
0 commit comments