mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Don't be greedy.
This commit is contained in:
parent
db2d0e0095
commit
9a6478b273
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
|
||||||
|
|
||||||
if ($fordiaspora) {
|
if ($fordiaspora) {
|
||||||
$URLSearchString = "^\[\]";
|
$URLSearchString = "^\[\]";
|
||||||
$Text = preg_replace_callback("/([@]\[(.*?)\])\(([$URLSearchString]*)\)/ism", 'diaspora_mentions', $Text);
|
$Text = preg_replace_callback("/([@]\[(.*?)\])\(([$URLSearchString]*?)\)/ism", 'diaspora_mentions', $Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
call_hooks('bb2diaspora',$Text);
|
call_hooks('bb2diaspora',$Text);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue