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
1 changed files with 5 additions and 1 deletions

View File

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