lib/blackbook/importer/csv.rb in rakutenusa-blackbook-1.0.14 vs lib/blackbook/importer/csv.rb in rakutenusa-blackbook-1.0.15
- old
+ new
@@ -26,9 +26,10 @@
contacts = Array.new
lines.each do |l|
vals = l.split(pattern)
next if vals.empty?
+ vals.map! {|x| x.gsub( /\A"/m, "" ).strip.gsub( /"\Z/m, "" ) }
contacts << to_hash(columns, vals)
end
contacts
end