Skip to content

Commit

Permalink
Fix yui#326 build error introduced in yui#312.
Browse files Browse the repository at this point in the history
  • Loading branch information
seyfahni committed Jun 26, 2019
1 parent cf0497e commit 7a43521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/yahoo/platform/yui/compressor/CssCompressor.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ public void compress(Writer out, int linebreakpos)
// remove unnecessary semicolons
css = css.replaceAll(";+}", "}");

// Replace 0(px,em) with 0. (don't replace seconds are they are needed for transitions to be valid)
String oldCss;
// Replace 0(px,em) with 0. (don't replace seconds are they are needed for transitions to be valid)

p = Pattern.compile("(?i)(^|: ?)((?:[0-9a-z-.]+ )*?)?(?:0?\\.)?0(?:px|em|in|cm|mm|pc|pt|ex|deg|g?rad|k?hz)");
do {
oldCss = css;
Expand All @@ -338,7 +339,6 @@ public void compress(Writer out, int linebreakpos)
} while (!(css.equals(oldCss)));

// We do the same with % but don't replace the 0% in keyframes
String oldCss;
p = Pattern.compile("(?i)(: ?)((?:[0-9a-z-.]+ )*?)?(?:0?\\.)?0(?:%)");
do {
oldCss = css;
Expand Down

0 comments on commit 7a43521

Please sign in to comment.