projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84afdd4
)
Match clickables case insensitive, fixes BR #363
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 22 Oct 2008 08:31:43 +0000
(10:31 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 22 Oct 2008 08:31:43 +0000
(10:31 +0200)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
6f1c50c
..
21829c2
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-314,11
+314,11
@@
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)),
+ QRegExp(QString("((?:(?:https?://|s?ftp://|irc://|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.
- QRegExp("((?:#|![A-Z0-9]{5})[^,:\\s]+(?::[^,:\\s]+)?)\\b")
+ QRegExp("((?:#|![A-Z0-9]{5})[^,:\\s]+(?::[^,:\\s]+)?)\\b"
, Qt::CaseInsensitive
)
// TODO: Nicks, we'll need a filtering for only matching known nicknames further down if we do this
};
// TODO: Nicks, we'll need a filtering for only matching known nicknames further down if we do this
};