slap a bunch of shit everywhere until the crashing stops

This commit is contained in:
ouwou committed 2020-10-05 21:37:07 -04:00
1 parent cfcb0d4e66
commit 0cdaea97dd
8 files changed
+52 -18

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ std::string ChatMessageItemContainer::ParseMessageContent(std::string content) {
}
std::string ChatMessageItemContainer::ParseMentions(std::string content) {
constexpr static const auto mentions_regex = R"(<@(\d+)>)";
constexpr static const auto mentions_regex = R"(<@!?(\d+)>)";
return RegexReplaceMany(content, mentions_regex, [this](const std::string &idstr) -> std::string {
const Snowflake id(idstr);