projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e490d5
)
Improving URL detection regexp
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 20 Oct 2008 06:11:54 +0000
(08:11 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 20 Oct 2008 06:11:54 +0000
(08:11 +0200)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
5d520e8
..
6f1c50c
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-309,7
+309,7
@@
void ContentsChatItem::doLayout() {
QList<ContentsChatItem::Clickable> ContentsChatItem::findClickables() const {
// For matching URLs
static QString urlEnd("(?:>|[,.;:\"]*\\s|\\b|$)");
- static QString urlChars("(?:[
\\w\\-~@/?&=+$()!%#]|[,.;:]\\w
)");
+ static QString urlChars("(?:[
,.;:]*[\\w\\-~@/?&=+$()!%#]
)");
static QRegExp regExp[] = {
// URL