fixed regex to display links with port correctly (#777)

This commit is contained in:
Marco Schmid 2018-10-08 14:26:42 +02:00 committed by pajlada
parent 4270c402fb
commit 602ae9e874

View file

@ -447,7 +447,7 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
}
} else {
static QRegularExpression domainRegex(
R"(^(?:(?:ftp|http)s?:\/\/)?([^\/:]+)(?:\/.*)?$)",
R"(^(?:(?:ftp|http)s?:\/\/)?([^\/]+)(?:\/.*)?$)",
QRegularExpression::CaseInsensitiveOption);
QString lowercaseLinkString;