]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Searching for tags has been enabled in all places. The tag detection has been improve...
[friendica.git] / include / text.php
index 1d74d9cf5c4bc19df856707acf6f30cd1bd0adc6..5b64ef2f9404705cca7f268e12a7ab3adc84a8bd 100644 (file)
@@ -562,11 +562,12 @@ function get_tags($s) {
        $ret = array();
 
        // ignore anything in a code block
-
        $s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s);
 
-       // ignore anything in a bbtag
+       // Force line feeds at bbtags
+       $s = str_replace(array("[", "]"), array("\n[", "]\n"), $s);
 
+       // ignore anything in a bbtag
        $s = preg_replace('/\[(.*?)\]/sm','',$s);
 
        // Match full names against @tags including the space between first and last