diff options
author | Sutou Kouhei <kou@clear-code.com> | 2020-05-17 12:02:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-20 02:32:50 +0900 |
commit | 1822b19221400da9e238c03b21f734159fb7fe6f (patch) | |
tree | 8a8afd3b0cc5b4874a596379366f50f5e8caad7f /lib/csv.rb | |
parent | cf7e472ab412044d97d6ec5263daed456c4f2724 (diff) |
[ruby/csv] Don't drop stack trace in CSV.parse_line
GitHub: fix GH-120
Reported by Kyle d'Oliveira. Thanks!!!
https://github.com/ruby/csv/commit/2959483f90
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3332
Diffstat (limited to 'lib/csv.rb')
-rw-r--r-- | lib/csv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb index a5109c010b..225f393401 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -963,7 +963,7 @@ class CSV # See {Options for Parsing}[#class-CSV-label-Options+for+Parsing]. # def parse_line(line, **options) - new(line, **options).shift + new(line, **options).each.first end # |