diff options
author | elektrahesse | 2010-09-13 05:00:58 +0200 |
---|---|---|
committer | elektrahesse | 2010-09-13 05:00:58 +0200 |
commit | 72faf5ba993d5540efda363ce935c46e9ff762d0 (patch) | |
tree | 6969e721436ed603e0aa39887d15d7f6aea3f32f /linden | |
parent | Initial support for names autocompletion in chat using ctrl-esc (diff) | |
download | meta-impy-72faf5ba993d5540efda363ce935c46e9ff762d0.zip meta-impy-72faf5ba993d5540efda363ce935c46e9ff762d0.tar.gz meta-impy-72faf5ba993d5540efda363ce935c46e9ff762d0.tar.bz2 meta-impy-72faf5ba993d5540efda363ce935c46e9ff762d0.tar.xz |
Added ' support for punctuation matching
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index c956aba..b1c1356 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -456,7 +456,7 @@ void LLFloaterChat::updateSettings() | |||
456 | BOOL LLFloaterChat::isOwnNameInText(const std::string &text_line) | 456 | BOOL LLFloaterChat::isOwnNameInText(const std::string &text_line) |
457 | { | 457 | { |
458 | std::string my_name = gSavedSettings.getString("FirstName"); | 458 | std::string my_name = gSavedSettings.getString("FirstName"); |
459 | std::string pattern_s = "(^|.*[,\\.\\?!:;\\*\\(\\s]+)(" + my_name + ")([,\\.\\?!:;\\*\\)\\s]+.*|$)"; | 459 | std::string pattern_s = "(^|.*[',\\.\\?!:;\\*\\(\\s]+)(" + my_name + ")([',\\.\\?!:;\\*\\)\\s]+.*|$)"; |
460 | boost::smatch what; | 460 | boost::smatch what; |
461 | boost::regex e1(pattern_s, boost::regex::icase); | 461 | boost::regex e1(pattern_s, boost::regex::icase); |
462 | 462 | ||