Fix overzealous regex not letting ) be part of secondlife.com urls

Thanks to Bitten and Router for reporting and testing.
This commit is contained in:
Lirusaito
2019-03-18 18:16:54 -04:00
parent 573c493d5d
commit 627c0a6b57

View File

@@ -493,7 +493,7 @@ std::string LLUrlEntrySLURL::getLocation(const std::string &url) const
//
LLUrlEntrySecondlifeURL::LLUrlEntrySecondlifeURL()
{
mPattern = boost::regex("\\b(https?://)?([-\\w\\.]*\\.)?(secondlife|lindenlab)\\.com(:\\d{1,5})?(/\\S*)?\\b",
mPattern = boost::regex("\\b(https?://)?([-\\w\\.]*\\.)?(secondlife|lindenlab)\\.com(:\\d{1,5})?(/\\S*)?",
boost::regex::perl|boost::regex::icase);
mIcon = "Hand";