fixed regex to display links with port correctly (#777)
This commit is contained in:
@@ -447,7 +447,7 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
static QRegularExpression domainRegex(
|
static QRegularExpression domainRegex(
|
||||||
R"(^(?:(?:ftp|http)s?:\/\/)?([^\/:]+)(?:\/.*)?$)",
|
R"(^(?:(?:ftp|http)s?:\/\/)?([^\/]+)(?:\/.*)?$)",
|
||||||
QRegularExpression::CaseInsensitiveOption);
|
QRegularExpression::CaseInsensitiveOption);
|
||||||
|
|
||||||
QString lowercaseLinkString;
|
QString lowercaseLinkString;
|
||||||
|
|||||||
Reference in New Issue
Block a user