diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-04-10 01:38:17 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-04-10 01:38:17 +0300 | 
| commit | 94ce45441d3e00a8ff2dac6c41be23fa04cee31b (patch) | |
| tree | 7684e49de6d93dad106944b6aef4e18a3637c88d /indra | |
| parent | 0ad34bfb26aa1c14ab854dc6a86f8c0ea5f8ae51 (diff) | |
SL-15082 regexp fix
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/llurlentry.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/tests/llurlentry_test.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llviewerregion.cpp | 2 | 
3 files changed, 2 insertions, 7 deletions
| diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp index 06e7070f7e..6ff1b0764e 100644 --- a/indra/llui/llurlentry.cpp +++ b/indra/llui/llurlentry.cpp @@ -1103,7 +1103,7 @@ std::string LLUrlEntryPlace::getLocation(const std::string &url) const  //  LLUrlEntryRegion::LLUrlEntryRegion()  { -	mPattern = boost::regex("secondlife:///app/region/[A-Za-z0-9]+(/\\d+)?(/\\d+)?(/\\d+)?/?", +	mPattern = boost::regex("secondlife:///app/region/[A-Za-z0-9()_%]+(/\\d+)?(/\\d+)?(/\\d+)?/?",  							boost::regex::perl|boost::regex::icase);  	mMenuName = "menu_url_slurl.xml";  	mTooltip = LLTrans::getString("TooltipSLURL"); diff --git a/indra/llui/tests/llurlentry_test.cpp b/indra/llui/tests/llurlentry_test.cpp index 4a4fdb72e3..1a474cca90 100644 --- a/indra/llui/tests/llurlentry_test.cpp +++ b/indra/llui/tests/llurlentry_test.cpp @@ -739,11 +739,6 @@ namespace tut  				  "XXX secondlife:///app/region/Burning%20Life%20(Hyper)/27/210/30 XXX",  				  "secondlife:///app/region/Burning%20Life%20(Hyper)/27/210/30"); -		// DEV-35459: SLURLs and teleport Links not parsed properly -		testRegex("Region with quote", url, -				  "XXX secondlife:///app/region/A'ksha%20Oasis/41/166/701 XXX", -			          "secondlife:///app/region/A%27ksha%20Oasis/41/166/701"); -  		// Rendering tests.  		testLabel("Render /app/region/Ahern/50/50/50/", url,  			"secondlife:///app/region/Ahern/50/50/50/", diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 359930b2cd..7628a6c7ef 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -145,7 +145,7 @@ public:          // build a secondlife://{PLACE} SLurl from this SLapp          std::string url = "secondlife://"; -		boost::regex name_rx("[A-Za-z0-9]+"); +		boost::regex name_rx("[A-Za-z0-9()_%]+");  		boost::regex coord_rx("[0-9]+");          for (int i = 0; i < num_params; i++)          { | 
