\u000a and \u000d are valid escape symbols in Groovy

This commit is contained in:
Maxim.Medvedev
2012-01-11 15:10:35 +04:00
parent 9ff64eb2db
commit 4f0e6c2518
@@ -603,8 +603,6 @@ public class GrStringUtil {
if (index + 4 <= chars.length()) {
try {
int code = Integer.parseInt(chars.substring(index, index + 4), 16);
//line separators are invalid here
if (code == 0x000a || code == 0x000d) return false;
c = chars.charAt(index);
if (c == '+' || c == '-') return false;
outChars.append((char)code);
@@ -730,8 +728,6 @@ public class GrStringUtil {
if (index + 4 <= chars.length()) {
try {
int code = Integer.parseInt(chars.substring(index, index + 4), 16);
//line separators are invalid here
if (code == 0x000a || code == 0x000d) return false;
c = chars.charAt(index);
if (c == '+' || c == '-') return false;
outChars.append((char)code);