Comparing version 0.7.9 to 0.7.10
@@ -377,3 +377,3 @@ 'use strict'; | ||
} | ||
const [protocol = "", auth, hostAndPath] = (input.match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1); | ||
const [protocol = "", auth, hostAndPath] = (input.replace(/\\/g, "/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1); | ||
const [host = "", path = ""] = (hostAndPath.match(/([^/?]*)(.*)?/) || []).splice(1); | ||
@@ -380,0 +380,0 @@ const { pathname, search, hash } = parsePath(path); |
{ | ||
"name": "ufo", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "URL utils for humans", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/ufo", |
@@ -62,3 +62,3 @@ [![npm version][npm-version-src]][npm-version-href] | ||
// Result: http://foo.com/foo/bar/baz?test=123#token | ||
joinURL('http://foo.com/foo?test=123#token', 'bar', 'baz') | ||
resolveURL('http://foo.com/foo?test=123#token', 'bar', 'baz') | ||
``` | ||
@@ -65,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
38159
6