Skip to content

Commit f828944

Browse files
author
Mihhail Lapushkin
committed
Merge pull request #10 from ef-ctx/master
fix: updates URL_REGEX to handle minified single css propery
2 parents 3022ff4 + 2a9f818 commit f828944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/css-url-embed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = function(grunt) {
2-
var URL_REGEX = /url\(["']?([^"'\(\)]+?)["']?\)[;, ](?!\s*?\/\*\s*?noembed\s*?\*\/)/;
2+
var URL_REGEX = /url\(["']?([^"'\(\)]+?)["']?\)[};, ](?!\s*?\/\*\s*?noembed\s*?\*\/)/;
33
var URL_FILTERING_REGEX = /^(data|http|https):/;
44

55
var fs = require('fs');
@@ -110,4 +110,4 @@ module.exports = function(grunt) {
110110
grunt.fail.warn('URL embed failed!');
111111
}
112112
}
113-
};
113+
};

0 commit comments

Comments
 (0)