Skip to content

Commit 4126fb3

Browse files
committed
Update dist files for 2.0.1.
1 parent 0ee5336 commit 4126fb3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/bardcode.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function encodeEAN(text, hasChecksum) {
393393

394394
var origChecksum = void 0;
395395
if (hasChecksum) {
396-
origChecksum = text.substr(text.length - 1, 1);
396+
origChecksum = parseInt(text.substr(text.length - 1, 1), 10);
397397
text = text.substr(0, text.length - 1);
398398
}
399399

dist/bardcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function encodeEAN(text, hasChecksum) {
399399

400400
var origChecksum = void 0;
401401
if (hasChecksum) {
402-
origChecksum = text.substr(text.length - 1, 1);
402+
origChecksum = parseInt(text.substr(text.length - 1, 1), 10);
403403
text = text.substr(0, text.length - 1);
404404
}
405405

dist/bardcode.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bardcode",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Draw 1-D barcodes to Canvases",
55
"main": "dist/bardcode.js",
66
"jsnext:main": "dist/bardcode.es.js",

0 commit comments

Comments
 (0)