From: Daniel Albers Date: Mon, 7 Sep 2009 23:45:20 +0000 (+0200) Subject: awww... is not a url X-Git-Tag: 0.5-rc2~77 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=c0ce60dfa3a39d3c29f9208eb0ae122513f8aeb1;hp=4f6db9bfbcd23385bd9e10bf177a86bd17635b10 awww... is not a url Fixes #798. --- diff --git a/src/uisupport/clickable.cpp b/src/uisupport/clickable.cpp index 54fa9b82..dcda95f1 100644 --- a/src/uisupport/clickable.cpp +++ b/src/uisupport/clickable.cpp @@ -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.