From: Mikael Nordfeldth Date: Sat, 22 Apr 2017 09:15:55 +0000 (+0200) Subject: Fix URL mention regular expression in OStatusPlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4827655632155a045e3fc12353cbdc6ce481bcb7;p=quix0rs-gnu-social.git Fix URL mention regular expression in OStatusPlugin --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 8a99620aef..053615bb06 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -300,7 +300,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);