Comparing version 3.0.5 to 3.0.6
@@ -234,3 +234,3 @@ 'use strict' | ||
} | ||
if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && !parsed.path && parsed.query === undefined) { | ||
if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) { | ||
parsed.reference = 'same-document' | ||
@@ -274,6 +274,6 @@ } else if (parsed.scheme === undefined) { | ||
} | ||
if (parsed.path && parsed.path.length) { | ||
if (parsed.path) { | ||
parsed.path = escape(unescape(parsed.path)) | ||
} | ||
if (parsed.fragment && parsed.fragment.length) { | ||
if (parsed.fragment) { | ||
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment)) | ||
@@ -280,0 +280,0 @@ } |
'use strict' | ||
const UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu | ||
const UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu | ||
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "fast-uri", | ||
"description": "Dependency-free RFC 3986 URI toolbox", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "type": "commonjs", |
Sorry, the diff of this file is not supported yet
109402