lindell / JsBarcode

Barcode generation library written in JavaScript that works in both the browser and on Node.js
http://lindell.me/JsBarcode
MIT License
5.45k stars 1.1k forks source link

Wrong barcode number #72

Closed bongster closed 8 years ago

bongster commented 8 years ago

Hi i am using jsbarcode for make a barcode.

when i using jsbarcode, has a problem about show barcode number

i am using v2.5.1

i am send to value '900223824342', but made barcode image is 9002238243422

so when i update the module, that's problem are solved.

but i wondering what are change from v2.5.1 to 3.x

lindell commented 8 years ago

In JsBarcode v2.5.1, the format that was used was automatically chosen based on the best match of barcode symbology if no format was set. Now (v3) I have defaulted to always use CODE128 if available. What happened to you was that EAN13 was choosen as the barcode and the checkdigit of EAN13 was added to the end of it since it "was missing".

bongster commented 8 years ago

@lindell Thank you for your comment.

lindell commented 8 years ago

Seems like you got the question answered. Closing the issue.