Fix: Allow smartSplit() to handle String of chars not just a single char

This commit is contained in:
omkar 2018-10-14 21:49:19 +05:30
parent d2edffcef4
commit e23fef8b66

View File

@ -76,7 +76,7 @@ public class SmartSplit implements Function {
if (args.length > 1) {
String sep = args[1].toString();
parser = new CSVParser(
sep.charAt(0),
sep,
CSVParser.DEFAULT_QUOTE_CHARACTER,
CSVParser.DEFAULT_ESCAPE_CHARACTER,
CSVParser.DEFAULT_STRICT_QUOTES,