]> git.mxchange.org Git - friendica.git/commitdiff
tag finder tweak
authorFriendika <info@friendika.com>
Fri, 28 Jan 2011 05:24:21 +0000 (21:24 -0800)
committerFriendika <info@friendika.com>
Fri, 28 Jan 2011 05:24:21 +0000 (21:24 -0800)
boot.php

index 589068fb2ae3166149dac4e2ced9adcaf503fbaf..3cc98cc9b6febe84034872b87d26d5da8d20c68a 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1692,7 +1692,7 @@ function get_tags($s) {
 
        $s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s);
 
-       if(preg_match_all('/([@#][^ \x0D\x0A,:?]*)([ \x0D\x0A,:?]|$)/',$s,$match)) {
+       if(preg_match_all('/([@#][^ \x0D\x0A,:?]+)([ \x0D\x0A,:?]|$)/',$s,$match)) {
                foreach($match[1] as $match) {
                        if(strstr($match,"]")) {
                                // we might be inside a bbcode color tag - leave it alone