From 0fdd49798c3e8eaf3eaaaf06bf88578a27d7d480 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 20 Oct 2008 08:11:54 +0200 Subject: [PATCH] Improving URL detection regexp --- 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 5d520e8c..6f1c50ce 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -309,7 +309,7 @@ void ContentsChatItem::doLayout() { QList ContentsChatItem::findClickables() const { // For matching URLs static QString urlEnd("(?:>|[,.;:\"]*\\s|\\b|$)"); - static QString urlChars("(?:[\\w\\-~@/?&=+$()!%#]|[,.;:]\\w)"); + static QString urlChars("(?:[,.;:]*[\\w\\-~@/?&=+$()!%#])"); static QRegExp regExp[] = { // URL -- 2.20.1