Skip to content

Commit

Permalink
Update Gtin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiMagal authored Nov 16, 2024
1 parent 50681dd commit ec9b851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Domain/Product/ValueObject/Gtin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Gtin
/**
* Valid gtin regex pattern
*/
public const VALID_PATTERN = '/^[0-9]{8,14}$/';
public const VALID_PATTERN = '/^(|[0-9]{8,14})$/';

/**
* Maximum allowed symbols
Expand Down

0 comments on commit ec9b851

Please sign in to comment.