Skip to content

Commit

Permalink
Fixed a bug in cssmin causing issues with bootstrap. Thanks to eirikurn.
Browse files Browse the repository at this point in the history
  • Loading branch information
mape committed Jan 17, 2012
1 parent e2adc62 commit f97b4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/cssmin.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ YAHOO.compressor.cssmin = function (css, linebreakpos){
token = ''; token = '';


// preserve strings so their content doesn't get accidentally minified // 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]; var quote = match[0];
preservedTokens.push(match.slice(1, -1)); preservedTokens.push(match.slice(1, -1));
return quote + "___YUICSSMIN_PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___" + quote; return quote + "___YUICSSMIN_PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___" + quote;
Expand Down Expand Up @@ -179,4 +179,4 @@ YAHOO.compressor.cssmin = function (css, linebreakpos){
return css; return css;


}; };
exports.minify = YAHOO.compressor.cssmin; exports.minify = YAHOO.compressor.cssmin;

0 comments on commit f97b4a3

Please sign in to comment.