Skip to content

3.3.1 parsing bug #324

Closed
Closed
@stoodfarback

Description

@stoodfarback

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions