@@ -89,7 +89,7 @@ part 'csv_argument_errors.dart';
89
89
//
90
90
// We have a counter for every delimiter. Before adding a character _c_ to the
91
91
// StringBuffer which represents the current field, we find out if _c_ is part
92
- // a delimiter.
92
+ // of a delimiter.
93
93
// Assume all counters are 0 (the start condition). If any delimiter starts
94
94
// with _c_ we increment the corresponding counter:
95
95
// if (delim[delimCounter] == _c_) delimCounter++;
@@ -199,7 +199,8 @@ class CsvParser {
199
199
/// non 0 counter and take a substring of the corresponding string.
200
200
late StringBuffer _matchedChars;
201
201
202
- /// If [allowInvalid] is true we only use the user supplied value if it isn't null.
202
+ /// If [allowInvalid] is true we only use the user supplied value if it isn't
203
+ /// null.
203
204
static String ? _argValue (
204
205
bool ? allowInvalid, String ? userValue, String defaultValue,
205
206
{String ? userValue2}) {
@@ -297,10 +298,10 @@ class CsvParser {
297
298
final onlyTextEndDelimiterMatches =
298
299
_insideQuotedString && ! _previousWasTextEndDelimiter;
299
300
300
- // never look for a start text delimiter inside a quoted string.
301
+ // never look for a start text delimiter inside a string.
301
302
// (even if _previousWasTextEndDelimiter)
302
303
final matchTextDelimiters =
303
- ! _insideQuotedString && (! matching || _matchingTextDelimiter > 0 );
304
+ ! _insideString && (! matching || _matchingTextDelimiter > 0 );
304
305
305
306
final matchTextEndDelimiters =
306
307
_insideQuotedString && (! matching || _matchingTextEndDelimiter > 0 );
0 commit comments