summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-10-05 21:37:07 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-10-05 21:37:07 -0400
commit0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c (patch)
treec340566dbccc77d2d3cb21b1290e01e5c1c0d9c4 /components
parentcfcb0d4e662b960dcdd331a7c61dc2b9c614f930 (diff)
downloadabaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.tar.gz
abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.zip
slap a bunch of shit everywhere until the crashing stops
Diffstat (limited to 'components')
-rw-r--r--components/chatmessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp
index 5f8726d..f0447dc 100644
--- a/components/chatmessage.cpp
+++ b/components/chatmessage.cpp
@@ -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"(&lt;@(\d+)&gt;)";
+ constexpr static const auto mentions_regex = R"(&lt;@!?(\d+)&gt;)";
return RegexReplaceMany(content, mentions_regex, [this](const std::string &idstr) -> std::string {
const Snowflake id(idstr);