Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, DavBfr:
I found an issue in UPC-E barcode and fixed it.
One of the cases had a UPC-E input value of "100802" or "01008029".
The barcode content I expect to be displayed is "01008029" , as shown in the 1st picture,
but it displays '01020089' and cannot be read by the barcode scanner , as shown in the 2nd picture.
There are also errors in other input values, such as 107444,100902,100965,555555,1.. etc.
The issue comes from upcaToUpce() , whose RegExp cannot split groups accurately.
Please help to check and merge my fixed version.
Thanks.
OK, Test site : https://www.online-barcode.com/barcode-generator or https://barcodeqrcode.com/upc-e-generator/
NG, Test site : https://davbfr.github.io/dart_barcode/#/