CsvFieldIndexer: Fix handling of escaped characters

This commit is contained in:
2024-02-19 02:47:29 +01:00
parent 52cb729c0e
commit 13d9218944
3 changed files with 107 additions and 1 deletions

View File

@@ -102,6 +102,9 @@ public class CsvFieldIndexer
else if (c == _escapeChar && _insideString)
{
i++;
long absolutePosition = lineOffset + i + unicodeDelta;
fieldStartPosition ??= absolutePosition;
fieldEndPosition = absolutePosition;
}
else if ((c == '\n' || c == '\r') && _insideString == false)
{