Skip to content
Browse files

Update to remove empty rules properly even in @-rule blocks.

  • Loading branch information...
1 parent b85cdcc commit 92167fc125d02da57c092e2dcbd02402bcf503c2 isaacs committed Oct 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/yahoo/platform/yui/compressor/CssCompressor.java
View
2 src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -161,7 +161,7 @@ public void compress(Writer out, int linebreakpos)
css = sb.toString();
// Remove empty rules.
- css = css.replaceAll("[^\\}]+\\{;\\}", "");
+ css = css.replaceAll("[^\\}\\{]+\\{\\}", "");
if (linebreakpos >= 0) {
// Some source control tools don't like it when files containing lines longer

0 comments on commit 92167fc

Please sign in to comment.
Something went wrong with that request. Please try again.