Fix email addresses with non-original TLD longer than 6 characters won't get parsed properly

meow-7.2.2
Ansariel 2016-11-12 16:29:31 +01:00
parent 0735a898a1
commit 07a5efafd4
1 changed files with 1 additions and 1 deletions

View File

@ -1535,7 +1535,7 @@ std::string LLUrlEntryJira::getUrl(const std::string &string) const
LLUrlEntryEmail::LLUrlEntryEmail()
: LLUrlEntryBase()
{
mPattern = boost::regex("(mailto:)?[\\w\\.\\-]+@[\\w\\.\\-]+\\.[a-z]{2,6}",
mPattern = boost::regex("(mailto:)?[\\w\\.\\-]+@[\\w\\.\\-]+\\.[a-z]{2,}",
boost::regex::perl | boost::regex::icase);
mMenuName = "menu_url_email.xml";
mTooltip = LLTrans::getString("TooltipEmail");