Skip to content

Commit

Permalink
Specify comparison type in Replace(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Dec 31, 2023
1 parent 0745d49 commit 73080ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -122,7 +123,7 @@ internal partial class CsvMessageWriter
{
private static string CsvEncode(string value)
{
value = value.Replace("\"", "\"\"");
value = value.Replace("\"", "\"\"", StringComparison.Ordinal);
return $"\"{value}\"";
}
}

0 comments on commit 73080ec

Please sign in to comment.