for replaceTagsCompletely modify the prex for singeltons (as we are in Ungreedy mode, so we expect * to be ungreedy without specifying ?)

This commit is contained in:
Klaus Leithoff 2012-12-04 14:13:36 +00:00
parent c7ddc16820
commit 6a2b8882de

View File

@ -983,7 +983,8 @@ class translation
if ($_body) { if ($_body) {
if ($singleton) if ($singleton)
{ {
$_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body); //$_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body);
$_body = preg_replace('~<?'.$tag.'[^>].* '.$endtag.'~simU','',$_body); // we are in Ungreedy mode, so we expect * to be ungreedy without specifying ?
} }
else else
{ {