diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-10-02 10:22:36 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-10-02 10:22:36 +0200 |
commit | 9b6a18c55f7a54ec5d803f94fa489ab584705439 (patch) | |
tree | 8eead0e55900e9489ea46f715def09c65149725d | |
parent | 34c6eb7840464d3d2b30982f4d51109faa1e8a3e (diff) |
Fixed CSV parsing
-rw-r--r-- | lib/parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parser.rb b/lib/parser.rb index 5ac934c..393c330 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -525,7 +525,8 @@ module OpenTox end def split_row(row) - CSV.parse(row)[0] + row=CSV.parse(row)[0] + row.collect{ |x| x.nil? ? "" : x.to_s } #row.chomp.gsub(/["']/,'').split(/\s*[,;\t]\s*/,-1) # -1: do not skip empty cells end |