From d0ea20a17d8256f2050b5797399f9ce2c7e989e1 Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Wed, 1 May 2019 12:33:50 -0700 Subject: [PATCH] Check directly for // in resolveUrl because it isn't a valid URL --- lib/utils/resolve-url.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/resolve-url.js b/lib/utils/resolve-url.js index 96bb61004c..ae5e5e2ad5 100644 --- a/lib/utils/resolve-url.js +++ b/lib/utils/resolve-url.js @@ -28,6 +28,9 @@ export function resolveUrl(url, baseURI) { if (url && ABS_URL.test(url)) { return url; } + if (url === '//') { + return url; + } // Lazy feature detection. if (workingURL === undefined) { workingURL = false;