git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 48276556 authored by mmn's avatar mmn

Fix URL mention regular expression in OStatusPlugin

parent 5e7a7701
...@@ -300,7 +300,7 @@ class OStatusPlugin extends Plugin ...@@ -300,7 +300,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment