wwwtf this is no url! fixes #671
authorSebastian Goth <seezer@roath.org>
Sun, 12 Apr 2009 15:55:10 +0000 (17:55 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 12 Apr 2009 16:22:28 +0000 (18:22 +0200)
src/qtui/chatitem.cpp

index 9c84249..86fb133 100644 (file)
@@ -418,7 +418,7 @@ QList<ContentsChatItem::Clickable> ContentsChatItem::findClickables() const {
   static QRegExp regExp[] = {
     // URL
     // QRegExp(QString("((?:https?://|s?ftp://|irc://|mailto:|www\\.)%1+|%1+\\.[a-z]{2,4}(?:?=/%1+|\\b))%2").arg(urlChars, urlEnd)),
-    QRegExp(QString("((?:(?:mailto:|\\w+://)|www)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
+    QRegExp(QString("((?:(?:mailto:|\\w+://)|www\\.)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
 
     // Channel name
     // We don't match for channel names starting with + or &, because that gives us a lot of false positives.