# HG changeset patch # User Wuzzy # Date 1531872305 -7200 # Node ID 7e188a28f078e31af15d6db94c9b00f2148c18e5 # Parent 36f3f77e9b1b667ed7806da2f0901e4943a43ed0 Remove and replace old googlecode references diff -r 36f3f77e9b1b -r 7e188a28f078 QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Wed Jul 18 01:35:59 2018 +0200 +++ b/QTfrontend/ui/widget/chatwidget.cpp Wed Jul 18 02:05:05 2018 +0200 @@ -381,7 +381,10 @@ return QString("%1").arg(nickname.toHtmlEscaped()); } -const QRegExp HWChatWidget::URLREGEXP = QRegExp("(http(s)?://)?(www\\.)?((([^/:?&#]+\\.)?hedgewars\\.org|code\\.google\\.com|googlecode\\.com|hh\\.unit22\\.org)(/[^ ]*)?)"); +// Regex to make some URLs clickable for selected domains: +// - hedgewars.org (official website) +// - hh.unit22.org (community addon server) +const QRegExp HWChatWidget::URLREGEXP = QRegExp("(http(s)?://)?(www\\.)?((([^/:?&#]+\\.)?hedgewars\\.org|hh\\.unit22\\.org)(/[^ ]*)?)"); bool HWChatWidget::containsHighlight(const QString & sender, const QString & message) { @@ -401,7 +404,7 @@ QString HWChatWidget::messageToHTML(const QString & message) { QString formattedStr = message.toHtmlEscaped(); - // link some urls + // link some URLs formattedStr = formattedStr.replace(URLREGEXP, "\\4"); return formattedStr; } diff -r 36f3f77e9b1b -r 7e188a28f078 misc/hats_js_anim.xhtml --- a/misc/hats_js_anim.xhtml Wed Jul 18 01:35:59 2018 +0200 +++ b/misc/hats_js_anim.xhtml Wed Jul 18 02:05:05 2018 +0200 @@ -45,7 +45,7 @@