From 6cbd2c62c483fa9ddce7373d49c8dec0763a0460 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 13 Jan 2024 10:28:39 -0800 Subject: [PATCH] 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 --- content/en/functions/transform/Unmarshal.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/functions/transform/Unmarshal.md b/content/en/functions/transform/Unmarshal.md index 02524509b..e24f76381 100644 --- a/content/en/functions/transform/Unmarshal.md +++ b/content/en/functions/transform/Unmarshal.md @@ -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" ";") }} ```