From 64cfc0626832c7af948d8e4af4b9987f1e94d2e0 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Fri, 7 Nov 2008 12:28:39 +0100 Subject: [PATCH] Extend set of allowed chars in an URL, fixing BR #389 --- src/qtui/chatitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1