You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/node_modules/url-parse/index.js b/node_modules/url-parse/index.js
index b86c29f..f8e9252 100644
--- a/node_modules/url-parse/index.js+++ b/node_modules/url-parse/index.js@@ -547,7 +547,7 @@ function toString(stringify) {
url.protocol !== 'file:' &&
isSpecial(url.protocol) &&
!host &&
- url.pathname !== '/'+ !url.pathname.startsWith('/')
) {
//
// Add back the empty userinfo, otherwise the original invalid URL
@@ -555,7 +555,6 @@ function toString(stringify) {
//
result += '@';
}
-
//
// Trailing colon is removed from `url.host` when it is parsed. If it still
// ends with a colon, then add back the trailing colon that was removed. This
Is this an intentional change? Please let me know Ill open PR
The text was updated successfully, but these errors were encountered:
Hi! 馃憢
After the change from #226 I was getting an incorrect evaluation of URLs when using
toString()
.Example: If I
urlParseLibrary('/a/relative/path')
I would get:If I set the hostname to
''
I would get the href as'https://@/a/relative/path',
Here is the diff that solved my problem:
Is this an intentional change? Please let me know Ill open PR
The text was updated successfully, but these errors were encountered: