]> 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:26:23 +0000 (11:26 +0200)
plugins/OStatus/OStatusPlugin.php

index 8a99620aef44935ef7e415ca740c076fcb563108..053615bb0695148b00266fb03a264e9bd0a941de 100644 (file)
@@ -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);