Skip to content

Commit

Permalink
extended delimiters (#57)
Browse files Browse the repository at this point in the history
* Update csv_asset_loader.dart with additional delimiters

Update csv_asset_loader.dart with additional field delimiters, text delimiters, text end delimiters.

* update to single quotes

update to single quotes in lines 63 & 64
  • Loading branch information
deadsoul44 authored Dec 17, 2023
1 parent f432cbf commit e8f2ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/csv_asset_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ class CSVParser {
csvSettingsDetector:
useAutodetect && fieldDelimiter == null && eol == null
? FirstOccurrenceSettingsDetector(
fieldDelimiters: [',', ';', '\t'],
textDelimiters: ['"', "'", '”'],
textEndDelimiters: ['"', "'", '”'],
eols: ['\r\n', '\n'],
fieldDelimiters: [',', '\t'],
)
: null,
);
Expand Down

0 comments on commit e8f2ddc

Please sign in to comment.