Fix URL mention regular expression in OStatusPlugin

This commit is contained in:
Mikael Nordfeldth 2017-04-22 11:15:55 +02:00
parent 2fc4b174c1
commit 51e5cc2ac8

View File

@ -284,7 +284,7 @@ class OStatusPlugin extends Plugin
static function extractUrlMentions($text)
{
$wmatches = array();
$result = preg_match_all('!(?:^|\s+)@'.URL_REGEX_DOMAIN_NAME.'(?:/\w+)*)!',
$result = preg_match_all('/(?:^|\s+)@('.URL_REGEX_DOMAIN_NAME.'(?:\/\w+)*)/',
$text,
$wmatches,
PREG_OFFSET_CAPTURE);