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)
|
static function extractUrlMentions($text)
|
||||||
{
|
{
|
||||||
$wmatches = array();
|
$wmatches = array();
|
||||||
$result = preg_match_all('!(?:^|\s+)@'.URL_REGEX_DOMAIN_NAME.'(?:/\w+)*)!',
|
$result = preg_match_all('/(?:^|\s+)@('.URL_REGEX_DOMAIN_NAME.'(?:\/\w+)*)/',
|
||||||
$text,
|
$text,
|
||||||
$wmatches,
|
$wmatches,
|
||||||
PREG_OFFSET_CAPTURE);
|
PREG_OFFSET_CAPTURE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user