1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): require . in www.url regex matching

This commit is contained in:
Anthony Bilinski 2018-10-10 14:23:58 -07:00
parent 109a4ffd43
commit 13b15a87d7
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -79,7 +79,7 @@ static const QString HREF_WRAPPER = QStringLiteral(R"(<a href="%1">%1</a>)");
static const QString WWW_WRAPPER = QStringLiteral(R"(<a href="http://%1">%1</a>)");
static const QVector<QRegularExpression> WWW_WORD_PATTERN = {
QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*((www)\S+))"))
QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*((www\.)\S+))"))
};
static const QVector<QRegularExpression> URI_WORD_PATTERNS = {