1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Merge pull request #219 from captainIowa/master

Added CSV change to CDL.java
This commit is contained in:
Sean Leary 2016-05-01 22:55:13 -05:00
commit f239dc75ad

View file

@ -69,8 +69,13 @@ public class CDL {
for (;;) { for (;;) {
c = x.next(); c = x.next();
if (c == q) { if (c == q) {
//Handle escaped double-quote
if(x.next() != '\"')
{
x.back();
break; break;
} }
}
if (c == 0 || c == '\n' || c == '\r') { if (c == 0 || c == '\n' || c == '\r') {
throw x.syntaxError("Missing close quote '" + q + "'."); throw x.syntaxError("Missing close quote '" + q + "'.");
} }