We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87aaf9a commit c31d78eCopy full SHA for c31d78e
src/main/java/com/codepressed/CSVtoXML/Main.java
@@ -24,7 +24,7 @@ public static void main(String[] args) {
24
String csvFile = args[0];
25
String xmlFile = args[1];
26
String elementName;
27
- String csvSplit = StringUtils.EMPTY;
+ String csvSplit = ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
28
29
try {
30
elementName = args[2];
@@ -37,7 +37,6 @@ public static void main(String[] args) {
37
if (args[3] == "-s")
38
csvSplit = ";(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
39
} catch (ArrayIndexOutOfBoundsException e){
40
- csvSplit = ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
41
}
42
43
0 commit comments