# HG changeset patch # User sheepluva # Date 1452968968 -3600 # Node ID 6873bd4d120c47b87377e6b519902b679af9230e # Parent 4dd77731453bd14687a8f9c4f557903fbeec3697 recognize subdomains of hedgewars.org diff -r 4dd77731453b -r 6873bd4d120c QTfrontend/ui/widget/chatwidget.cpp --- 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("%1").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) {