Added placeholders to insert Barcodes into labels without using the predefined templates.

This commit is contained in:
Jan Böhmer 2022-09-25 00:34:44 +02:00
parent ab8be58c0d
commit 3d61e04e5b
6 changed files with 124 additions and 3 deletions

View file

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