Skip to content

Commit a47ca58

Browse files
authored
Merge pull request #557 from ThomasChr/master
Fixed Bug in checkean13, fixes #556
2 parents 6986395 + 841ac0c commit a47ca58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

check_ean_13/js/ean13.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ function checkean(code)
1717
}
1818
checkdigit = 10 - (sum%10);
1919

20+
if (checkdigit == 10) {
21+
checkdigit = 0;
22+
}
23+
2024
if (checkdigit == act_checkdigit) {
2125
return true;
2226
}

0 commit comments

Comments
 (0)