Skip to content

Commit

Permalink
GROOVY-10061: "del" ASCII character also should be escaped (closes #1572
Browse files Browse the repository at this point in the history
)

Otherwise, after printing out the result, it does not represent input!
  • Loading branch information
eustas authored and daniellansun committed Apr 27, 2021
1 parent 99159d4 commit 4476af5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -190,7 +190,7 @@ private static void escapeJavaStyleString(Writer out, String str, boolean escape
out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
} else if (ch >= 0x7f) {
out.write("\\u00" + hex(ch));
} else if (ch < 32) {
switch (ch) {
Expand Down

0 comments on commit 4476af5

Please sign in to comment.