]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/OStatusPlugin.php
Allow mentioning bare domains with OStatus
[quix0rs-gnu-social.git] / plugins / OStatus / OStatusPlugin.php
index 356044cbe9b8810339668d7f27ae2f0c2b282501..1fe6e54fa66520adb5092772660c1a30d1bde015 100644 (file)
@@ -292,7 +292,7 @@ class OStatusPlugin extends Plugin
         }
 
         // Profile matches: @example.com/mublog/user
-        if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+(?:/\w+)+)!',
+        if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+(?:/\w+)*)!',
                        $text,
                        $wmatches,
                        PREG_OFFSET_CAPTURE)) {