normalize-url
Advanced tools
Comparing version 5.2.1 to 5.3.0
@@ -86,2 +86,6 @@ 'use strict'; | ||
if (/^view-source:/i.test(urlString)) { | ||
throw new Error('`view-source:` is not supported as it is a non-standard protocol'); | ||
} | ||
const hasRelativeProtocol = urlString.startsWith('//'); | ||
@@ -88,0 +92,0 @@ const isRelativeUrl = !hasRelativeProtocol && /^\.*\//.test(urlString); |
{ | ||
"name": "normalize-url", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"description": "Normalize a URL", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
18548
336