diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-02-26 15:38:46 -0500 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-03-17 19:18:06 +0100 |
commit | 8b33b1f08b941fe6ab5cf2431695284e21088223 (patch) | |
tree | ddb926daaaeb7549618ec40613d7c796041595cf /src/notifications/ManagerWin.cpp | |
parent | Simplify formatting on Windows (diff) | |
download | nheko-8b33b1f08b941fe6ab5cf2431695284e21088223.tar.xz |
Simplify regex
Diffstat (limited to '')
-rw-r--r-- | src/notifications/ManagerWin.cpp | 2 |
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 ¬ return QTextDocumentFragment::fromHtml( mtx::accessors::formattedBodyWithFallback(notification.event) - .replace(QRegularExpression("(<mx-reply>.+\\<\\/mx-reply\\>)"), "")) + .replace(QRegularExpression("<mx-reply>.+</mx-reply>"), "")) .toPlainText() .prepend(messageLeadIn); } |