From 3bf1c09c7a466f80e855a897cd92f962e4a18782 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 18 Dec 2015 03:55:08 +0000 Subject: [PATCH] csv.rb: fix typo * lib/csv.rb (CSV#shift): fix typo. [See GH-1160] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/csv.rb b/lib/csv.rb index ac77af7c5f..6e005cf20d 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -1855,7 +1855,7 @@ class CSV 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]