You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/03/19 16:11:15 UTC

[royale-compiler] branch develop updated: minification: fix issue where flex: 1 1 0%; is minified to flex: 1 1 0;

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0950de1  minification: fix issue where flex: 1 1 0%; is minified to flex: 1 1 0;
0950de1 is described below

commit 0950de118009b5a178e8713744ceec3d8f137c84
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Mar 19 17:11:12 2020 +0100

    minification: fix issue where flex: 1 1 0%; is minified to flex: 1 1 0;
---
 .../compiler/internal/driver/js/royale/JSCSSCompilationSession.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
index 26514e3..88a5d49 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
@@ -102,7 +102,7 @@ public class JSCSSCompilationSession extends CSSCompilationSession
         cssString = cssString.replaceAll("[\\n\\r]+\\s*", "");
         cssString = cssString.replaceAll("\\s+", " ");
         cssString = cssString.replaceAll("\\s?([:,;{}])\\s?", "$1");
-        cssString = cssString.replaceAll("([\\s:]0)(px|pt|%|em)", "$1");
+        cssString = cssString.replaceAll("([\\s:]0)(px|pt|em)", "$1");
 
         return cssString;
     }