QTfrontend/ui/widget/chatwidget.cpp
changeset 6215 efe2e2f7cabf
parent 6214 c06b7e2eb7a4
child 6218 999215ca87d7
--- a/QTfrontend/ui/widget/chatwidget.cpp	Wed Oct 26 05:57:00 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Wed Oct 26 11:50:03 2011 +0200
@@ -603,7 +603,7 @@
     // clear and re compile regexp for highlighting
     m_highlights.clear();
 
-    QString hlRegExp("^(.* )?%1(( |[^-a-z0-9_]( |$)).*)?$");
+    QString hlRegExp("^(.* )?%1[^-a-z0-9_]*( .*)?$");
     QRegExp whitespace("\\s");
 
     m_highlights.append(QRegExp(hlRegExp.arg(m_userNick)));