slang
slang copied to clipboard
option to specify csvSettingsDetector
Motivation I am using a different text delimiter. Slang cannot parse my csv.
Developer Experience
There should be an option to specify csvSettingsDetector
.
var d = new FirstOccurrenceSettingsDetector(eols: ['\r\n', '\n'], textDelimiters: ['"', "'"]);
new CsvToListConverter(csvSettingsDetector: d);
Thanks for this issue!
I think that your solution is good enough to be default as it supports both CRLF
and LF
, "
and '
.
Released in v3.5.0
.
Actually, I use a different delimiter and wanted to specify it as a parameter. I checked the changelog, docs, tests and couldn’t see that kind of parameter. I guess you added the above as builtin default values.
Alright, sorry. Yep, this is now default. I guess this parameter is missing in the config file.
Friendly reminder :) This is the only blocking issue to switch from another localization package.