mirror of
https://github.com/skidoodle/taj-validator.git
synced 2025-03-05 20:00:40 +01:00
marcifix
This commit is contained in:
@@ -10,7 +10,7 @@ function validateTAJ(taj) {
|
|||||||
|
|
||||||
for (let i = 0; i < taj.length; i++) {
|
for (let i = 0; i < taj.length; i++) {
|
||||||
if (i < 8) {
|
if (i < 8) {
|
||||||
sum += i % 2 == 0 ? parseInt(taj[i]) * 7 : parseInt(taj[i]) * 3;
|
sum += (i + 1) % 2 == 0 ? parseInt(taj[i]) * 7 : parseInt(taj[i]) * 3;
|
||||||
num += taj[i];
|
num += taj[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user