Open ronanguilloux opened 8 years ago
see:
And:
These validators will return true for a string containing all zeroes (if the string length is correct). That edge case has to be either handled in the code or intentionally left like it is. No matter what you choose to do, this behavior needs to be documented somewhere where users can't miss it.
Thanks for reporting, @tbmatuka. Just shared fixes in #120 and tagged a new 2.1.2 version
http://www.gs1.org/how-calculate-check-digit-manually