--- a/QTfrontend/ui/widget/chatwidget.cpp Sat Jan 16 19:20:06 2016 +0100
+++ b/QTfrontend/ui/widget/chatwidget.cpp Sat Jan 16 19:29:28 2016 +0100
@@ -373,7 +373,7 @@
return QString("<span class=\"nick\">%1</span>").arg(Qt::escape(nickname));
}
-const QRegExp HWChatWidget::URLREGEXP = QRegExp("(http(s)?://)?(www\\.)?((hedgewars\\.org|code\\.google\\.com|googlecode\\.com|hh\\.unit22\\.org)(/[^ ]*)?)");
+const QRegExp HWChatWidget::URLREGEXP = QRegExp("(http(s)?://)?(www\\.)?((([^/:?&#]+\\.)?hedgewars\\.org|code\\.google\\.com|googlecode\\.com|hh\\.unit22\\.org)(/[^ ]*)?)");
bool HWChatWidget::containsHighlight(const QString & sender, const QString & message)
{