mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Added placeholders to insert Barcodes into labels without using the predefined templates.
This commit is contained in:
parent
ab8be58c0d
commit
3d61e04e5b
6 changed files with 124 additions and 3 deletions
|
@ -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);
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue