Soapbox / laravel-formatter

A Formatter Class for Laravel 4 based on FuelPHP's Formatter Class
249 stars 95 forks source link

CSV Parser enclosure should be user definable #50

Open AaronHolbrook opened 5 years ago

AaronHolbrook commented 5 years ago

I am running into an issue where there is a comma within a cell but it is properly enclosed in a quotation marks.

https://github.com/SoapBox/laravel-formatter/blob/master/src/Parsers/CsvParser.php#L18

However, due to the setEnclosure being hardcoded to a pipe character, the parsing is breaking and ignoring the enclosure.

I propose allowing users of this package to simply define the enclosure to be whatever they need.