Skip to content

Commit a61a949

Browse files
Merge pull request #30 from kemayo/patch-1
Allow spaces inside the url-notation parentheses
2 parents 0697457 + f0f7747 commit a61a949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/css-url-embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = function(grunt) {
2-
var BASE_URL_REGEX = 'url\\(["\']?([^"\'\\(\\)]+?)["\']?\\)[};,!\\s]';
2+
var BASE_URL_REGEX = 'url\\(\\s*["\']?([^"\'\\(\\)]+?)["\']?\\s*\\)[};,!\\s]';
33
var EXCLUSIVE_URL_REGEX = BASE_URL_REGEX + '(?!\\s*?\\/\\*\\s*?noembed\\s*?\\*\\/)';
44
var INCLUSIVE_URL_REGEX = BASE_URL_REGEX + '\\s*?\\/\\*\\s*?embed\\s*?\\*\\/';
55
var EMBEDDABLE_URL_REGEX = /^data:/;

0 commit comments

Comments
 (0)