Skip to content

Commit

Permalink
wsh-compatible first char, updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyan committed Nov 3, 2010
1 parent 2a76e27 commit 83b2be2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/js/cssmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ YAHOO.compressor.cssmin = function (css, linebreakpos) {

// preserve strings so their content doesn't get accidentally minified
css = css.replace(/("([^\\"]|\\.|\\)*")|('([^\\']|\\.|\\)*')/g, function (match) {
var i, max, quote = match[0];
var i, max, quote = match.substring(0, 1);

match = match.slice(1, -1);

Expand Down
1 change: 1 addition & 0 deletions tests/bug2527974.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
body {
yo: cats;
}
ul[id$=foo] label:hover {yo: yo;}
2 changes: 1 addition & 1 deletion tests/bug2527974.css.min
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/*! $LastChangedRevision: 81 $ $LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}
/*! $LastChangedRevision: 81 $ $LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}ul[id$=foo] label:hover{yo:yo}

0 comments on commit 83b2be2

Please sign in to comment.