Skip to content

Commit

Permalink
parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jmooring authored and bep committed Jan 16, 2024
1 parent 6ed2e19 commit 6cbd2c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/en/functions/transform/Unmarshal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" ";") }}
```
Expand Down

0 comments on commit 6cbd2c6

Please sign in to comment.