-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
i have encountered manufacturers who are using a 2 digit suffix at the end of the 12 digit UPC bar code. the 2 digit suffix indicates a packaging of some sort. you are returning false if the length is not the expected length.
barcode-validator/src/BarcodeValidator.php
Lines 71 to 72 in 6512e3b
// Check if the string length matches the code's desired length | |
if (strlen($code) == $length) { |
here is one such code: 84788101273501
upczilla does validate this code as true while your validator automatically returns false.
Metadata
Metadata
Assignees
Labels
No labels