]> git.mxchange.org Git - friendica.git/commitdiff
Don't be greedy.
authorMichael <heluecht@pirati.ca>
Mon, 2 Jan 2017 07:00:44 +0000 (07:00 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 2 Jan 2017 07:00:44 +0000 (07:00 +0000)
include/bb2diaspora.php

index 53e9ebfd04451a958bf6b226787e5ce0e7b5d2aa..6ddbb6ef30f59f403a8ac7726ec3ef02da7750cf 100644 (file)
@@ -156,7 +156,7 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
 
        if ($fordiaspora) {
                $URLSearchString = "^\[\]";
-               $Text = preg_replace_callback("/([@]\[(.*?)\])\(([$URLSearchString]*)\)/ism", 'diaspora_mentions', $Text);
+               $Text = preg_replace_callback("/([@]\[(.*?)\])\(([$URLSearchString]*?)\)/ism", 'diaspora_mentions', $Text);
        }
 
        call_hooks('bb2diaspora',$Text);