summary refs log tree commit diff
path: root/src/notifications/ManagerMac.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-02-26 15:38:46 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:18:06 +0100
commit8b33b1f08b941fe6ab5cf2431695284e21088223 (patch)
treeddb926daaaeb7549618ec40613d7c796041595cf /src/notifications/ManagerMac.cpp
parentSimplify formatting on Windows (diff)
downloadnheko-8b33b1f08b941fe6ab5cf2431695284e21088223.tar.xz
Simplify regex
Diffstat (limited to 'src/notifications/ManagerMac.cpp')
-rw-r--r--src/notifications/ManagerMac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notifications/ManagerMac.cpp b/src/notifications/ManagerMac.cpp

index 973afdc4..8b6b3bd9 100644 --- a/src/notifications/ManagerMac.cpp +++ b/src/notifications/ManagerMac.cpp
@@ -20,7 +20,7 @@ NotificationsManager::formatNotification(const mtx::responses::Notification &not return QTextDocumentFragment::fromHtml( mtx::accessors::formattedBodyWithFallback(notification.event) - .replace(QRegularExpression("(<mx-reply>.+\\<\\/mx-reply\\>)"), "")) + .replace(QRegularExpression("<mx-reply>.+</mx-reply>"), "")) .toPlainText() .prepend((mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote) ? "* " + sender + " "