Skip to content

Commit

Permalink
fix incorrect detection of header's dbl quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jul 9, 2021
1 parent 9218ad8 commit 803a076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, `"`)
}
Expand Down

0 comments on commit 803a076

Please sign in to comment.