Commit 51e5cc2a by Mikael Nordfeldth

Fix URL mention regular expression in OStatusPlugin

1 parent 2fc4b174
......@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!