From 73080ecfa65d4efb53aa4476074c5904cd44308b Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 31 Dec 2023 06:38:53 +0200 Subject: [PATCH] Specify comparison type in `Replace(...)` --- DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs b/DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs index 3d524777..f6911ce3 100644 --- a/DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs +++ b/DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; @@ -122,7 +123,7 @@ internal partial class CsvMessageWriter { private static string CsvEncode(string value) { - value = value.Replace("\"", "\"\""); + value = value.Replace("\"", "\"\"", StringComparison.Ordinal); return $"\"{value}\""; } }