ITADN
ruby/csv/Issues

3.3.1 parsing bug

#324Closedstoodfarback 创建于 2024-12-21
S
stoodfarbackcommented
I've compacted the data as much as I could to have a small script to reproduce. It appears to happen when there's a quoted comma in a cell and a blank row after. ``` csv_data = <<~HEREDOC "one," "three" HEREDOC pp(CSV.parse(csv_data)) ``` #### output with csv gem 3.3.0 ``` [["one,"], [], ["three"]] ``` #### output with csv gem 3.3.1 ``` [["one,"], ["three"], ["three"]] ``` #### system info ``` > ruby -v ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-linux] ```
关闭于 2024-12-21 2 条评论