Replace QRegExp with QRegularExpression.
Fix timeline viewport saving. Fix invitation dialog. #124
This commit is contained in:
@@ -6,3 +6,10 @@ QString utils::removeReply(const QString& text) {
|
||||
result.remove(utils::removeReplyRegex);
|
||||
return result;
|
||||
}
|
||||
|
||||
QString utils::cleanHTML(const QString& text, QMatrixClient::Room* room) {
|
||||
QString result(text);
|
||||
result.replace(codePillRegExp, "<i>\\1</i>");
|
||||
result.replace(userPillRegExp, "<b>\\1</b>");
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user