Skip to content

CSV Parser enclosure should be user definable #50

@AaronHolbrook

Description

@AaronHolbrook

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.

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