0001-awww.-is-not-a-url.patch
src/uisupport/clickable.cpp | ||
---|---|---|
56 | 56 |
static QRegExp regExp[] = { |
57 | 57 |
// URL |
58 | 58 |
// QRegExp(QString("((?:https?://|s?ftp://|irc://|mailto:|www\\.)%1+|%1+\\.[a-z]{2,4}(?:?=/%1+|\\b))%2").arg(urlChars, urlEnd)), |
59 |
QRegExp(QString("((?:(?:mailto:|\\w+://)|www\\.)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive), |
|
59 |
QRegExp(QString("\\b((?:(?:mailto:|\\w+://)|www\\.)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
|
|
60 | 60 | |
61 | 61 |
// Channel name |
62 | 62 |
// We don't match for channel names starting with + or &, because that gives us a lot of false positives. |
63 |
- |