From 4d67fcc433be184429a6c70621d3368386bc01e2 Mon Sep 17 00:00:00 2001 From: elektrahesse Date: Sun, 12 Sep 2010 18:18:21 +0200 Subject: Fixed the regexp to match commas before the name --- linden/indra/newview/llfloaterchat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 1cf85de..c956aba 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp @@ -456,7 +456,7 @@ void LLFloaterChat::updateSettings() BOOL LLFloaterChat::isOwnNameInText(const std::string &text_line) { std::string my_name = gSavedSettings.getString("FirstName"); - std::string pattern_s = "(^|.*[\\.\\?!:;\\*\\(\\s]+)(" + my_name + ")([,\\.\\?!:;\\*\\)\\s]+.*|$)"; + std::string pattern_s = "(^|.*[,\\.\\?!:;\\*\\(\\s]+)(" + my_name + ")([,\\.\\?!:;\\*\\)\\s]+.*|$)"; boost::smatch what; boost::regex e1(pattern_s, boost::regex::icase); -- cgit v1.1