awww... is not a url
authorDaniel Albers <daniel@lbers.com>
Mon, 7 Sep 2009 23:45:20 +0000 (01:45 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 9 Sep 2009 14:10:55 +0000 (16:10 +0200)
Fixes #798.

src/uisupport/clickable.cpp

index 54fa9b8..dcda95f 100644 (file)
@@ -56,7 +56,7 @@ ClickableList ClickableList::fromString(const QString &str) {
   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("\\b((?:(?: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.