From c44c405be5bcd440da2dc21ca67730f8d83a134a Mon Sep 17 00:00:00 2001 From: liudi <297114195@qq.com> Date: Fri, 4 Nov 2022 18:04:57 +0800 Subject: [PATCH] fix: ReadFields some quote string which has ( ) --- read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read.go b/read.go index 112ee28b..80d32e63 100644 --- a/read.go +++ b/read.go @@ -28,7 +28,7 @@ const ( // TODO: add CTL to atomSpecials var ( - quotedSpecials = string([]rune{dquote, '\\'}) + quotedSpecials = string([]rune{dquote, '\\', listStart, listEnd}) respSpecials = string([]rune{respCodeEnd}) atomSpecials = string([]rune{listStart, listEnd, literalStart, sp, '%', '*'}) + quotedSpecials + respSpecials )