File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1014,7 +1014,9 @@ impl Reader {
1014
1014
EndFieldDelim => ( StartField , NfaInputAction :: Epsilon ) ,
1015
1015
EndFieldTerm => ( InRecordTerm , NfaInputAction :: Epsilon ) ,
1016
1016
InField => {
1017
- if self . delimiter == c {
1017
+ if self . escape == Some ( c) {
1018
+ ( InQuotedField , NfaInputAction :: Discard )
1019
+ } else if self . delimiter == c {
1018
1020
( EndFieldDelim , NfaInputAction :: Discard )
1019
1021
} else if self . term . equals ( c) {
1020
1022
( EndFieldTerm , NfaInputAction :: Epsilon )
@@ -1023,7 +1025,9 @@ impl Reader {
1023
1025
}
1024
1026
}
1025
1027
InQuotedField => {
1026
- if self . quoting && self . quote == c {
1028
+ if self . delimiter == c {
1029
+ ( InField , NfaInputAction :: CopyToOutput )
1030
+ } else if self . quoting && self . quote == c {
1027
1031
( InDoubleEscapedQuote , NfaInputAction :: Discard )
1028
1032
} else if self . quoting && self . escape == Some ( c) {
1029
1033
( InEscapedQuote , NfaInputAction :: Discard )
You can’t perform that action at this time.
0 commit comments