From 803a076b795da102725b778c622068c6cf2b4448 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 9 Jul 2021 15:20:45 -0500 Subject: [PATCH] fix incorrect detection of header's dbl quotes --- app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index 37cabc1..c0b88e0 100644 --- a/app/main.go +++ b/app/main.go @@ -495,7 +495,7 @@ func splitAtCommas(s string) []string { return s } res := strings.TrimSpace(s) - if s[0] == '"' && s[len(s)-1] == '"' { + if res[0] == '"' && res[len(res)-1] == '"' { res = strings.TrimPrefix(res, `"`) res = strings.TrimSuffix(res, `"`) }