Cinchoo / ChoETL

ETL framework for .NET (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
MIT License
746 stars 134 forks source link

Parsing of headerless file can lose fields if a field separator pattern is repeated in the line #272

Closed MattDarg closed 1 year ago

MattDarg commented 1 year ago

ChoCSVReader uses RightOf to go through a line removing fields as it goes. It expects this to return all text after the first occurrence of the specified pattern, but it actually returns right of the last occurrence. This causes ChoCSVReader to skip out fields when the field separator pattern appears in the line more than once.

PR to demonstrate and fix is #271

MattDarg commented 1 year ago

PR has been merged in.