parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal

If true, a quote may appear in an unquoted field and a non-doubled quote
may appear in a quoted field. It defaults to false.

Closes #11884
This commit is contained in:
Joe Mooring 2024-01-13 10:28:39 -08:00 committed by Bjørn Erik Pedersen
parent 911bc60a7a
commit 912c6576bb
3 changed files with 36 additions and 0 deletions

View file

@ -125,6 +125,9 @@ delimiter
comment
: (`string`) The comment character used in the CSV. If set, lines beginning with the comment character without preceding whitespace are ignored.
lazyQuotes
: (`bool`) If true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. Default is `false`.
```go-html-template
{{ $csv := "a;b;c" | transform.Unmarshal (dict "delimiter" ";") }}
```