Skip to content

Commit c31d78e

Browse files
author
A. Apesteguia
committed
Minor update
1 parent 87aaf9a commit c31d78e

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/codepressed/CSVtoXML

1 file changed

+1
-2
lines changed

src/main/java/com/codepressed/CSVtoXML/Main.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424
String csvFile = args[0];
2525
String xmlFile = args[1];
2626
String elementName;
27-
String csvSplit = StringUtils.EMPTY;
27+
String csvSplit = ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
2828

2929
try {
3030
elementName = args[2];
@@ -37,7 +37,6 @@ public static void main(String[] args) {
3737
if (args[3] == "-s")
3838
csvSplit = ";(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
3939
} catch (ArrayIndexOutOfBoundsException e){
40-
csvSplit = ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
4140
}
4241

4342
try {

0 commit comments

Comments
 (0)