Skip to content
Snippets Groups Projects
Commit e8659e0e authored by Tofu Linden's avatar Tofu Linden
Browse files

DEV-44732 avoidable false-positives on automatic URL finding in chat

parent f3ba1f44
No related branches found
No related tags found
No related merge requests found
...@@ -201,8 +201,11 @@ std::string LLUrlEntryHTTPLabel::getUrl(const std::string &string) ...@@ -201,8 +201,11 @@ std::string LLUrlEntryHTTPLabel::getUrl(const std::string &string)
// //
LLUrlEntryHTTPNoProtocol::LLUrlEntryHTTPNoProtocol() LLUrlEntryHTTPNoProtocol::LLUrlEntryHTTPNoProtocol()
{ {
mPattern = boost::regex("(\\bwww\\.\\S+\\.\\S+|\\b[^ \t\n\r\f\v:/]+.com\\S*|\\b[^ \t\n\r\f\v:/]+.net\\S*|\\b[^ \t\n\r\f\v:/]+.edu\\S*|\\b[^ \t\n\r\f\v:/]+.org\\S*)", mPattern = boost::regex("("
boost::regex::perl|boost::regex::icase); "\\bwww\\.\\S+\\.\\S+" // www.FOO.BAR
"|\\b[^ \t\n\r\f\v:/]+.(?:com|net|edu|org)[^[:space:][:alnum:]]*$" // FOO.net
")",
boost::regex::perl|boost::regex::icase);
mMenuName = "menu_url_http.xml"; mMenuName = "menu_url_http.xml";
mTooltip = LLTrans::getString("TooltipHttpUrl"); mTooltip = LLTrans::getString("TooltipHttpUrl");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment