Skip to content

Commit

Permalink
multiDelimiter.length > 0 --> .length > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidSnackDrive committed Mar 17, 2022
1 parent 37d771b commit 975b537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/univocity/parsers/csv/CsvWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private boolean append(int columnIndex, boolean isElementQuoted, boolean allowTr

private boolean delimiterChecker(char ch, String element, int index) {
boolean multi = true;
if(multiDelimiter.length > 0) {
if(multiDelimiter.length > 1) {
multi = matchMultiDelimiter(element, index + 1);
}
return ch == multiDelimiter[0] && multi;
Expand Down

0 comments on commit 975b537

Please sign in to comment.