修复CsvParser中对正文中双引号处理逻辑问题

This commit is contained in:
Looly
2024-07-31 01:14:32 +08:00
parent c6fc880405
commit 469b433b53
4 changed files with 30 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ import static org.junit.Assert.assertEquals;
public class Pr1244Test {
@Test
public void csvReadTest() {
final String csv = "a,q\"\"e,d,f";
final String csv = "a,q\"e,d,f";
final CsvReader reader = CsvUtil.getReader(new StringReader(csv));
final CsvData read = reader.read();
assertEquals(4, read.getRow(0).size());