Merge pull request #11306 from annando/abstract-space
Replace abstract content with a space to prevent missing spaces
This commit is contained in:
commit
0f9a239d59
|
@ -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