Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ui): require . in www.url regex matching
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed Oct 13, 2018
1 parent 109a4ff commit 13b15a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatlog/textformatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 13b15a8

Please sign in to comment.