diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-10-02 10:37:21 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-10-02 10:37:21 +0200 |
commit | 9e5e7a09d188c7cfa70246fb4b8fee4169b18c97 (patch) | |
tree | 3630a34f2d8b1a108c1049f8e050029e2f9ef97a | |
parent | 9b6a18c55f7a54ec5d803f94fa489ab584705439 (diff) |
Fixed CSV parsing 2
-rw-r--r-- | lib/parser.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/parser.rb b/lib/parser.rb index 393c330..4c44b5f 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -526,8 +526,7 @@ module OpenTox def split_row(row) 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 + row.collect{ |x| x.nil? ? "" : x.to_s.strip } end end |