From 9661d98e4e38e41562d5aa0846f88ddbda6fd530 Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 8 Dec 2015 10:08:15 +0100 Subject: [PATCH] Changed HTTP_URL_REGEX Changed HTTP_URL_REGEX to respect protocol relative url, refs #9 --- lib/cssprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cssprocessor.js b/lib/cssprocessor.js index 5e13b09..6f739dd 100644 --- a/lib/cssprocessor.js +++ b/lib/cssprocessor.js @@ -8,7 +8,7 @@ 'use strict'; -var HTTP_URL_REGEX = /^(https?:\/\/)/i; +var HTTP_URL_REGEX = /^(https?:)?\/\//i; var CssProcessor = module.exports = function(fileContent, lineFeed, options) { this.fileContent = fileContent;