projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6ec8637
)
Merge pull request #62 from Express50/issue_1243
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 14 Mar 2014 17:32:39 +0000
(18:32 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 14 Mar 2014 17:32:39 +0000
(18:32 +0100)
Fix URL regex
src/uisupport/clickable.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/clickable.cpp
b/src/uisupport/clickable.cpp
index
7acd8e2
..
3b32f26
100644
(file)
--- a/
src/uisupport/clickable.cpp
+++ b/
src/uisupport/clickable.cpp
@@
-55,7
+55,7
@@
ClickableList ClickableList::fromString(const QString &str)
// For matching URLs
static QString scheme("(?:(?:mailto:|(?:[+.-]?\\w)+://)|www(?=\\.\\S+\\.))");
static QString authority("(?:(?:[,.;@:]?[-\\w]+)+\\.?|\\[[0-9a-f:.]+\\])(?::\\d+)?");
- static QString urlChars("(?:[,.;:]*[\\w~@/?&=+$()!%#*
{}\\[\\]\\|'^
-])");
+ static QString urlChars("(?:[,.;:]*[\\w~@/?&=+$()!%#*-])");
static QString urlEnd("(?:>|[,.;:\"]*\\s|\\b|$)");
static QRegExp regExp[] = {