Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8898da6

Browse files
committed
Fixed bug that compress JavaScript introduce unexpected "@324@();" for
SWT projects
1 parent a208a02 commit 8898da6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/compiler/RegExCompress.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public static String regexCompress(String str) {
5959
break;
6060
}
6161
}
62-
String specialFunKey = "@324@();\r\n";
62+
//String specialFunKey = "@324@();\r\n";
63+
String specialFunKey = "@324@();";
6364
if (ignoreCSS) {
6465
cssCodes = str.substring(idx1, idx2);
6566
str = str.substring(0, idx1) + specialFunKey + str.substring(idx2);
@@ -103,7 +104,8 @@ public static String regexCompress2(String str) {
103104
break;
104105
}
105106
}
106-
String specialFunKey = "@324@();\r\n";
107+
//String specialFunKey = "@324@();\r\n";
108+
String specialFunKey = "@324@();";
107109
if (ignoreCSS) {
108110
cssCodes = str.substring(idx1, idx2);
109111
str = str.substring(0, idx1) + specialFunKey + str.substring(idx2);

sources/net.sf.j2s.lib/src/net/sf/j2s/lib/build/RegExCompress.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ public static String regexCompress2(String str) {
158158
break;
159159
}
160160
}
161-
String specialFunKey = "@324@();\r\n";
161+
//String specialFunKey = "@324@();\r\n";
162+
String specialFunKey = "@324@();";
162163
if (ignoreCSS) {
163164
cssCodes = str.substring(idx1, idx2);
164165
str = str.substring(0, idx1) + specialFunKey + str.substring(idx2);

0 commit comments

Comments
 (0)