Start adding autotests

This commit is contained in:
Carl Schwan
2022-04-09 21:21:27 +02:00
committed by Tobias Fella
parent ab5afa26ef
commit 4ed123fd52
4 changed files with 155 additions and 1 deletions

View File

@@ -312,7 +312,6 @@ QDateTime NeoChatRoom::lastActiveTime()
QString NeoChatRoom::subtitleText()
{
QString subtitle = this->lastEventToString().size() == 0 ? this->topic() : this->lastEventToString();
static const QRegularExpression blockquote("(\r\n\t|\n|\r\t|)> ");
static const QRegularExpression heading("(\r\n\t|\n|\r\t|)\\#{1,6} ");
static const QRegularExpression newlines("(\r\n\t|\n|\r\t)");
@@ -323,6 +322,7 @@ QString NeoChatRoom::subtitleText()
static const QRegularExpression del("<del>(.*)</del>");
static const QRegularExpression multileLineCode("```([^```]+)```");
static const QRegularExpression singleLinecode("`([^`]+)`");
QString subtitle = lastEventToString().size() == 0 ? topic() : lastEventToString();
subtitle
// replace blockquote, i.e. '> text'