QTfrontend/ui/widget/chatwidget.cpp
changeset 11521 6873bd4d120c
parent 11046 47a8c19ecb60
child 11743 90ea2156b809
--- 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)
 {