Fix stray 'a' in @room escaping

This commit is contained in:
Nicolas Werner 2021-05-11 15:10:28 +02:00
parent 0bf611beb2
commit d52c2515bc
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -70,7 +70,7 @@ utils::stripReplyFromFormattedBody(const std::string &formatted_bodyi)
QString formatted_body = QString::fromStdString(formatted_bodyi); QString formatted_body = QString::fromStdString(formatted_bodyi);
formatted_body.remove(QRegularExpression("<mx-reply>.*</mx-reply>", formatted_body.remove(QRegularExpression("<mx-reply>.*</mx-reply>",
QRegularExpression::DotMatchesEverythingOption)); QRegularExpression::DotMatchesEverythingOption));
formatted_body.replace("@room", "@\u2060aroom"); formatted_body.replace("@room", "@\u2060room");
return formatted_body.toStdString(); return formatted_body.toStdString();
} }