mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 18:55:30 +08:00
Added CSV change to CDL.java
This commit is contained in:
5
CDL.java
5
CDL.java
@@ -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 + "'.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user