projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9a892ff
)
Recognize gopher:// URIs as clickable
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 26 Nov 2008 10:00:02 +0000
(11:00 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 26 Nov 2008 10:00:02 +0000
(11:00 +0100)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
9785325
..
433d8d6
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-410,7
+410,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)),
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("((?:(?:https?://|s?ftp://|irc://|mailto:)|www)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
+ QRegExp(QString("((?:(?:https?://|s?ftp://|irc://|
gopher://|
mailto:)|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.