Skip to content

Commit

Permalink
Fixed issue with , char after handling array beeing removed
Browse files Browse the repository at this point in the history
  • Loading branch information
RNoeldner committed Jun 26, 2023
1 parent f1b926c commit 8af1462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/ClassLibraryCSV/FileWriter/JsonFileWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ public override string BuildRow(in string placeHolderText, in IDataReader reader
while (startArray != -1)
{
var endArray = row.IndexOf("\\]", startArray);
var array = row.Substring(startArray, endArray-startArray+3);
var array = row.Substring(startArray, endArray-startArray+2);
rep.Add(array, HandleArray(array, FindWriterColumn(row, startArray)));
startArray = row.IndexOf("\\[", endArray);
}
foreach (var replace in rep)
row=row.Replace(replace.Key, replace.Value);

return row;
}

Expand Down

0 comments on commit 8af1462

Please sign in to comment.