Fix URL mention regular expression in OStatusPlugin
This commit is contained in:
parent
2fc4b174c1
commit
51e5cc2ac8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user