From fa81286f367587ed228d976f099d999186f4b48a Mon Sep 17 00:00:00 2001 From: Pete Nelson Date: Wed, 5 Jun 2013 15:00:42 +0200 Subject: [PATCH] fixed import of remote font file starting with // --- lib/clean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clean.js b/lib/clean.js index 68e49cee..bface73d 100644 --- a/lib/clean.js +++ b/lib/clean.js @@ -371,7 +371,7 @@ var CleanCSS = { .replace(/\)$/, '') .replace(/['"]/g, ''); - if (/^(http|https):\/\//.test(importedFile)) + if (/^(http|https):\/\//.test(importedFile) || /^\/\//.test(importedFile)) return '@import url(' + importedFile + ');'; var relativeTo = importedFile[0] == '/' ? -- 2.34.1