Minor comment fixes

pull/26/head
Oleksii Holub 7 years ago
parent 01f8cf0e32
commit e0d2f9c1ba

@ -226,7 +226,7 @@ namespace DiscordChatExporter.Services
// New lines // New lines
content = content.Replace("\n", Environment.NewLine); content = content.Replace("\n", Environment.NewLine);
// User mentions (<@id>) // User mentions (<@id> and <@!id>)
foreach (var mentionedUser in message.MentionedUsers) foreach (var mentionedUser in message.MentionedUsers)
content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>", $"@{mentionedUser}"); content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>", $"@{mentionedUser}");
@ -284,7 +284,7 @@ namespace DiscordChatExporter.Services
// Meta mentions (@here) // Meta mentions (@here)
content = content.Replace("@here", "<span class=\"mention\">@here</span>"); content = content.Replace("@here", "<span class=\"mention\">@here</span>");
// User mentions (<@id>) // User mentions (<@id> and <@!id>)
foreach (var mentionedUser in message.MentionedUsers) foreach (var mentionedUser in message.MentionedUsers)
{ {
content = Regex.Replace(content, $"&lt;@!?{mentionedUser.Id}&gt;", content = Regex.Replace(content, $"&lt;@!?{mentionedUser.Id}&gt;",

Loading…
Cancel
Save