ruby-changes:41108
From: nobu <ko1@a...>
Date: Fri, 18 Dec 2015 12:55:20 +0900 (JST)
Subject: [ruby-changes:41108] nobu:r53183 (trunk): csv.rb: fix typo
nobu 2015-12-18 12:55:08 +0900 (Fri, 18 Dec 2015) New Revision: 53183 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53183 Log: csv.rb: fix typo * lib/csv.rb (CSV#shift): fix typo. [See GH-1160] Modified files: trunk/lib/csv.rb Index: lib/csv.rb =================================================================== --- lib/csv.rb (revision 53182) +++ lib/csv.rb (revision 53183) @@ -1855,7 +1855,7 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv.rb#L1855 csv.last << @col_sep end elsif part[0] == @quote_char - # If we are staring a new quoted column + # If we are starting a new quoted column if part[-1] != @quote_char || part.count(@quote_char) % 2 != 0 # start an extended column csv << part[1..-1] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/