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=51e5cc2ac814886c35f1277ce5207d2758cb86a1;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 55a50d12c0..c4322b5487 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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);