parent
53678867ca
commit
d1eb13cddc
|
@ -176,15 +176,10 @@ public class JavaScriptTarget extends Target {
|
|||
return targetCharValueEscape[v];
|
||||
}
|
||||
|
||||
if (v >= 0x20 && v < 127 && (!Character.isDigit(v) || v == '8' || v == '9')) {
|
||||
if (v >= 0x20 && v < 127) {
|
||||
return String.valueOf((char)v);
|
||||
}
|
||||
|
||||
if ( v>=0 && v<=127 ) {
|
||||
String oct = Integer.toOctalString(v);
|
||||
return "\\"+ oct;
|
||||
}
|
||||
|
||||
String hex = Integer.toHexString(v|0x10000).substring(1,5);
|
||||
return "\\u"+hex;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue