#ifndef Utils_H #define Utils_H #include "room.h" #include "user.h" #include #include #include #include #include #include #include namespace utils { static const QRegularExpression removeReplyRegex{ "> <.*?>.*?\\n\\n", QRegularExpression::DotMatchesEverythingOption}; static const QRegularExpression removeRichReplyRegex{ ".*?", QRegularExpression::DotMatchesEverythingOption}; static const QRegularExpression codePillRegExp{ "
(.*?)
", QRegularExpression::DotMatchesEverythingOption}; static const QRegularExpression userPillRegExp{ "(.*?)", QRegularExpression::DotMatchesEverythingOption}; QString removeReply(const QString& text); QString cleanHTML(const QString& text, QMatrixClient::Room* room); } // namespace utils #endif