Skip to content

Commit 676bb51

Browse files
committed
Fixed KinKonKan decoding
1 parent a76f6df commit 676bb51

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/variety/kinkonkan.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,14 +508,13 @@
508508
for (var i = 0; i < bstr.length; i++) {
509509
var ca = bstr.charAt(i),
510510
excell = bd.excell[ec];
511-
512511
if (this.include(ca, "A", "Z")) {
513512
subint.push(ec);
514513
excell.qchar = parseInt(ca, 36) - 9;
515514
} else if (this.include(ca, "0", "9")) {
516515
subint.push(ec);
517516
excell.qchar =
518-
parseInt(ca, 36) - 9 + (parseInt(bstr.charAt(i + 1), 10) + 1) * 26;
517+
parseInt(bstr.charAt(i + 1), 36) - 9 + (parseInt(ca, 10) + 1) * 26;
519518
i++;
520519
} else if (this.include(ca, "a", "z")) {
521520
ec += parseInt(ca, 36) - 10;

0 commit comments

Comments
 (0)