We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ed84f commit 1adc113Copy full SHA for 1adc113
src/index.js
@@ -473,9 +473,8 @@ function parseUrl(url) {
473
return { url: { searchParams: new Map() } }
474
475
let host = url
476
- host = host.slice(host.indexOf('://') + 3)
477
- host = host.split(/[?/]/)[0]
478
- host = host.slice(host.indexOf('@') + 1)
+ host = host.slice(host.indexOf('://') + 3).split(/[?/]/)[0]
+ host = decodeURIComponent(host.slice(host.indexOf('@') + 1))
479
480
return {
481
url: new URL(url.replace(host, host.split(',')[0])),
0 commit comments