Permalink
Browse files

Fixed a bug in cssmin causing issues with bootstrap. Thanks to eirikurn.

  • Loading branch information...
1 parent e2adc62 commit f97b4a370479bca6ec45826a64aef33fe610f068 @mape committed Jan 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 deps/cssmin.js
View
@@ -28,7 +28,7 @@ YAHOO.compressor.cssmin = function (css, linebreakpos){
token = '';
// preserve strings so their content doesn't get accidentally minified
- css = css.replace(/("([^\\"]|\\.|\\)*")|('([^\\']|\\.|\\)*')/g, function(match) {
+ css = css.replace(/("([^\\"\n]|\\.|\\)*")|('([^\\'\n]|\\.|\\)*')/g, function(match) {
var quote = match[0];
preservedTokens.push(match.slice(1, -1));
return quote + "___YUICSSMIN_PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___" + quote;
@@ -179,4 +179,4 @@ YAHOO.compressor.cssmin = function (css, linebreakpos){
return css;
};
-exports.minify = YAHOO.compressor.cssmin;
+exports.minify = YAHOO.compressor.cssmin;

0 comments on commit f97b4a3

Please sign in to comment.