From: Pete Nelson Date: Wed, 5 Jun 2013 13:00:42 +0000 (+0200) Subject: fixed import of remote font file starting with // X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fa81286f367587ed228d976f099d999186f4b48a;p=clean-css.git fixed import of remote font file starting with // --- 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] == '/' ?