mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 20:51:09 -04:00
increase series param length to 6
This commit is contained in:
@ -156,7 +156,7 @@ class SerialNumberFormatter
|
||||
|
||||
public static function getPlaceholders(string $format)
|
||||
{
|
||||
$regex = "/{{([A-Z_]{1,})(?::)?([a-zA-Z0-9_]{1,4}|.{1})?}}/";
|
||||
$regex = "/{{([A-Z_]{1,})(?::)?([a-zA-Z0-9_]{1,6}|.{1})?}}/";
|
||||
|
||||
preg_match_all($regex, $format, $placeholders);
|
||||
array_shift($placeholders);
|
||||
|
||||
Reference in New Issue
Block a user