fixed import of remote font file starting with //
authorPete Nelson <pete.nelson@mac.com>
Wed, 5 Jun 2013 13:00:42 +0000 (15:00 +0200)
committerPete Nelson <pete.nelson@mac.com>
Wed, 5 Jun 2013 13:00:42 +0000 (15:00 +0200)
lib/clean.js

index 68e49ce..bface73 100644 (file)
@@ -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] == '/' ?