Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove enclosed quotation marks on csv import
  • Loading branch information
Keavy Miller committed Apr 16, 2009
1 parent e69597b commit f26f56b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/blackbook/importer/csv.rb
Expand Up @@ -28,6 +28,7 @@ def fetch_contacts!
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

Expand Down

0 comments on commit f26f56b

Please sign in to comment.