diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-10-25 16:56:58 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-10-25 16:56:58 +0300 |
commit | 5484f34f9945a6f0060dd74d07ff2701d393f37b (patch) | |
tree | 9d7317f62da6d95246a2a18b41263b5384517e91 /indra | |
parent | 6daa52b3b93328506e34d6595a01d30c334897bc (diff) |
#2245 allow passing command-line arguments
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloaterimnearbychat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llfloaterimnearbychat.cpp b/indra/newview/llfloaterimnearbychat.cpp index b580b19b19..f108b5198e 100644 --- a/indra/newview/llfloaterimnearbychat.cpp +++ b/indra/newview/llfloaterimnearbychat.cpp @@ -37,6 +37,7 @@ #include "llfloatersidepanelcontainer.h" #include "llfocusmgr.h" #include "lllogchat.h" +#include "llregex.h" #include "llresizebar.h" #include "llresizehandle.h" #include "lldraghandle.h" @@ -70,7 +71,6 @@ #include "lltranslate.h" #include "llautoreplace.h" #include "lluiusage.h" -#include <boost/regex.hpp> S32 LLFloaterIMNearbyChat::sLastSpecialChatChannel = 0; @@ -609,8 +609,8 @@ void LLFloaterIMNearbyChat::sendChat( EChatType type ) { utf8_revised_text = utf8text; // check if the message is /filename.lua and execute the Lua script - static const boost::regex is_lua_script("^/.*\\.luau?$"); - if (boost::regex_match(utf8text, is_lua_script)) + static const boost::regex is_lua_script("^/.*\\.luau?(?:\\s+\\S+)*$"); + if (ll_regex_match(utf8text, is_lua_script)) { LLLUAmanager::runScriptFile(utf8text.substr(1)); utf8_revised_text.clear(); |