mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 12:47:59 +08:00
修复CsvParser解析最后字符串多两个[""]的问题
https://gitee.com/loolly/hutool/issues/I12H4Y?from=project-issue
This commit is contained in:
parent
6d310646ad
commit
8c6dd54a67
@ -189,7 +189,7 @@ public final class CsvParser implements Closeable, Serializable {
|
|||||||
|
|
||||||
if (localPreChar == config.fieldSeparator || localCurrentField.hasContent()) {
|
if (localPreChar == config.fieldSeparator || localCurrentField.hasContent()) {
|
||||||
//剩余部分作为一个字段
|
//剩余部分作为一个字段
|
||||||
currentFields.add(localCurrentField.toStringAndReset());
|
currentFields.add(StrUtil.unWrap(localCurrentField.toStringAndReset(), config.textDelimiter));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user