From 8b33b1f08b941fe6ab5cf2431695284e21088223 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 26 Feb 2021 15:38:46 -0500 Subject: Simplify regex --- src/notifications/ManagerWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notifications/ManagerWin.cpp') 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 ¬ return QTextDocumentFragment::fromHtml( mtx::accessors::formattedBodyWithFallback(notification.event) - .replace(QRegularExpression("(.+\\<\\/mx-reply\\>)"), "")) + .replace(QRegularExpression(".+"), "")) .toPlainText() .prepend(messageLeadIn); } -- cgit 1.5.1