]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix URL mention regular expression in OStatusPlugin
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 22 Apr 2017 09:15:55 +0000 (11:15 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 22 Apr 2017 09:15:55 +0000 (11:15 +0200)
plugins/OStatus/OStatusPlugin.php

index 55a50d12c0ee2eceae17086963858a37d3f8bb26..c4322b54874d9c2db985e1f3ede1e8285999ec66 100644 (file)
@@ -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);