summary refs log tree commit diff
path: root/src/notifications/ManagerWin.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/ManagerWin.cpp
parentSimplify formatting on Windows (diff)
downloadnheko-8b33b1f08b941fe6ab5cf2431695284e21088223.tar.xz
Simplify regex
Diffstat (limited to '')
-rw-r--r--src/notifications/ManagerWin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notifications/ManagerWin.cpp b/src/notifications/ManagerWin.cpp
index 9c45d166..baafb6dc 100644
--- a/src/notifications/ManagerWin.cpp
+++ b/src/notifications/ManagerWin.cpp
@@ -121,7 +121,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(messageLeadIn);
 }