JoshClose / CsvHelper

Library to help reading and writing CSV files
http://joshclose.github.io/CsvHelper/
Other
4.63k stars 1.05k forks source link

Fixes for issues with multichar newline #2233

Open OMAlexB opened 4 months ago

OMAlexB commented 4 months ago

Contains fixes for the issues described in #2216, have verified this solves all our problems in our own testing.

Added support for filling the buffer with enough room to peek the next x characters to confirm it is the new line or delimiter instead of relying on just checking the first character. This fill behavior and peeking ahead will only be used if either the newline or delimiter is over two characters long.