Skip to content

Commit 2959483

Browse files
committed
Don't drop stack trace in CSV.parse_line
GitHub: fix GH-120 Reported by Kyle d'Oliveira. Thanks!!!
1 parent 6e83a1d commit 2959483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def parse(str, **options, &block)
963963
# See {Options for Parsing}[#class-CSV-label-Options+for+Parsing].
964964
#
965965
def parse_line(line, **options)
966-
new(line, **options).shift
966+
new(line, **options).each.first
967967
end
968968

969969
#

0 commit comments

Comments
 (0)