Permalink
Browse files

issue #76: Quotation marks parsing problem in AlphaImageLoader/src

  • Loading branch information...
1 parent 7124b2c commit 685507e98a41366f702ccb1ea5d2090e4d4b9217 @afelix afelix committed Mar 13, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −1 lib/techs/css.js
  2. +2 −0 test/freeze_alphaimageloader/ok_css.css
  3. +2 −0 test/freeze_alphaimageloader/test.css
View
@@ -5,7 +5,7 @@ var INHERIT = require('inherit'),
stringRe = "(?:(?:'[^'\\r\\n]*')|(?:\"[^\"\\r\\n]*\"))",
urlRe = "(?:(?:url\\(\\s*" + stringRe + "\\s*\\))|(?:url\\(\\s*[^\\s\\r\\n'\"]*\\s*\\)))",
- srcRe = "(?:src\\s*=\\s*[^,]+)",
+ srcRe = "(?:src\\s*=\\s*[^,\)]+)",
commentRe = '(?:/\\*[^*]*\\*+(?:[^/][^*]*\\*+)*/)',
importRe = '(?:\\@import\\s+(' + urlRe + '|' + stringRe + '))',
allRe = new RegExp(commentRe + '|' + importRe + '|' + urlRe + '|' + srcRe, 'g'),
@@ -1,4 +1,6 @@
a {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://test/test.png',sizingMethod=crop);
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://test/test.png');
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="//a/b/test/test2/wFPs-e1B3wMRud8TzGw7YHjS08I.png",sizingMethod=crop);
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="//a/b/test/test2/wFPs-e1B3wMRud8TzGw7YHjS08I.png");
}
@@ -1,4 +1,6 @@
a {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://test/test.png',sizingMethod=crop);
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://test/test.png');
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png',sizingMethod=crop);
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png');
}

0 comments on commit 685507e

Please sign in to comment.