mirror of
https://github.com/friendica/friendica
synced 2024-11-18 11:03:42 +00:00
Replace abstract content with a space to prevent missing spaces
This commit is contained in:
parent
4b6bbe3632
commit
e0295abdab
1 changed files with 2 additions and 2 deletions
|
@ -2086,8 +2086,8 @@ class BBCode
|
||||||
public static function stripAbstract($text)
|
public static function stripAbstract($text)
|
||||||
{
|
{
|
||||||
DI::profiler()->startRecording('rendering');
|
DI::profiler()->startRecording('rendering');
|
||||||
$text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", '', $text);
|
$text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", ' ', $text);
|
||||||
$text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", '', $text);
|
$text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", ' ', $text);
|
||||||
|
|
||||||
DI::profiler()->stopRecording();
|
DI::profiler()->stopRecording();
|
||||||
return $text;
|
return $text;
|
||||||
|
|
Loading…
Reference in a new issue