Permalink
Browse files

wsh-compatible first char, updated test

  • Loading branch information...
1 parent 2a76e27 commit 83b2be2d4e98834de96bf3ee268c79e61ad9afa3 @stoyan stoyan committed Nov 3, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 ports/js/cssmin.js
  2. +1 −0 tests/bug2527974.css
  3. +1 −1 tests/bug2527974.css.min
View
@@ -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);
View
@@ -7,3 +7,4 @@
body {
yo: cats;
}
+ul[id$=foo] label:hover {yo: yo;}
View
@@ -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.