From: Manuel Nickschas Date: Fri, 7 Nov 2008 11:28:39 +0000 (+0100) Subject: Extend set of allowed chars in an URL, fixing BR #389 X-Git-Tag: 0.3.1~58 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=64cfc0626832c7af948d8e4af4b9987f1e94d2e0;hp=3271ab1dff7df6f6464cb714d675291aae791639 Extend set of allowed chars in an URL, fixing BR #389 --- diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index a78d2f8a..105eb20f 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -359,7 +359,7 @@ void ContentsChatItem::doLayout() { QList ContentsChatItem::findClickables() const { // For matching URLs static QString urlEnd("(?:>|[,.;:\"]*\\s|\\b|$)"); - static QString urlChars("(?:[,.;:]*[\\w\\-~@/?&=+$()!%#])"); + static QString urlChars("(?:[,.;:]*[\\w\\-~@/?&=+$()!%#*|{}\\[\\]])"); static QRegExp regExp[] = { // URL