fix more bugs in CSV reader

This commit is contained in:
Grahame Grieve 2020-04-07 07:27:19 +10:00
parent 210cc0affc
commit 971b59b7af

View File

@ -111,7 +111,11 @@ public class CSVReader extends InputStreamReader {
String s = cells.length >= index ? cells[index] : null; String s = cells.length >= index ? cells[index] : null;
if (Utilities.noString(s)) if (Utilities.noString(s))
return null; return null;
if (s.startsWith("\"") && s.endsWith("\"")) {
return s.substring(1, s.length()-2);
} else {
return s; return s;
}
} }
protected boolean parseBoolean(String column) { protected boolean parseBoolean(String column) {