mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Minor comment fixes
This commit is contained in:
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, $"<@!?{mentionedUser.Id}>",
|
content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue