From e0d2f9c1ba19739d04153421f1fa7f35559a8179 Mon Sep 17 00:00:00 2001 From: Oleksii Holub Date: Tue, 19 Dec 2017 18:17:42 +0200 Subject: [PATCH] Minor comment fixes --- DiscordChatExporter/Services/ExportService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter/Services/ExportService.cs b/DiscordChatExporter/Services/ExportService.cs index 67e8e692..f578653d 100644 --- a/DiscordChatExporter/Services/ExportService.cs +++ b/DiscordChatExporter/Services/ExportService.cs @@ -226,7 +226,7 @@ namespace DiscordChatExporter.Services // New lines content = content.Replace("\n", Environment.NewLine); - // User mentions (<@id>) + // User mentions (<@id> and <@!id>) foreach (var mentionedUser in message.MentionedUsers) content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>", $"@{mentionedUser}"); @@ -284,7 +284,7 @@ namespace DiscordChatExporter.Services // Meta mentions (@here) content = content.Replace("@here", "@here"); - // User mentions (<@id>) + // User mentions (<@id> and <@!id>) foreach (var mentionedUser in message.MentionedUsers) { content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>",