Don't be greedy.

This commit is contained in:
Michael 2017-01-02 07:00:44 +00:00
parent db2d0e0095
commit 9a6478b273

View 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);