projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f6db9b
)
awww... is not a url
author
Daniel Albers
<daniel@lbers.com>
Mon, 7 Sep 2009 23:45:20 +0000
(
01:45
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 9 Sep 2009 14:10:55 +0000
(16:10 +0200)
Fixes #798.
src/uisupport/clickable.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/clickable.cpp
b/src/uisupport/clickable.cpp
index
54fa9b8
..
dcda95f
100644
(file)
--- 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)),
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.
// Channel name
// We don't match for channel names starting with + or &, because that gives us a lot of false positives.