|
|
|
@ -112,7 +112,7 @@ public class csvParser extends AbstractParser implements Parser {
|
|
|
|
|
// try comma, semicolon and tab; take that one that results with more columns
|
|
|
|
|
final String[] colc = CommonPattern.COMMA.split(row);
|
|
|
|
|
final String[] cols = CommonPattern.SEMICOLON.split(row);
|
|
|
|
|
final String[] colt = row.split("\t");
|
|
|
|
|
final String[] colt = CommonPattern.TAB.split(row);
|
|
|
|
|
if (colc.length >= cols.length && colc.length >= colt.length) separator = ",";
|
|
|
|
|
if (cols.length >= colc.length && cols.length >= colt.length) separator = ";";
|
|
|
|
|
if (colt.length >= cols.length && colt.length >= colc.length) separator = "\t";
|
|
|
|
|