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 cec0bef commit 97c55fbCopy full SHA for 97c55fb
index.js
@@ -571,7 +571,7 @@ function getRedirectUrl (url) {
571
if (url[i] !== '/' && url[i] !== '\\') break
572
}
573
// turns all leading / or \ into a single /
574
- url = '/' + url.substr(i)
+ url = '/' + url.slice(i)
575
try {
576
const parsed = new URL(url, 'http://localhost.com/')
577
const parsedPathname = parsed.pathname
0 commit comments