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:
parent
109a4ffd43
commit
13b15a87d7
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user