Use [[PLACEHOLDER]] instead of %%PLACEHOLDER%% for label placeholders.

This commit is contained in:
Jan Böhmer 2020-04-25 18:19:15 +02:00
parent cb2d0d9845
commit 3163a7ba09
14 changed files with 80 additions and 78 deletions

View file

@ -65,7 +65,7 @@ class LabelTextReplacer
public function replace(string $lines, object $target): string
{
$patterns = [
'/(%%[A-Z_]+%%)/' => function ($match) use ($target) {
'/(\[\[[A-Z_]+\]\])/' => function ($match) use ($target) {
return $this->handlePlaceholder($match[0], $target);
},
];