From 9a6478b273e1fb9866948baa92b101d765f6264a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 2 Jan 2017 07:00:44 +0000 Subject: [PATCH] Don't be greedy. --- include/bb2diaspora.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 53e9ebfd04..6ddbb6ef30 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -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); -- 2.39.5