Skip to content

Commit e94a5fc

Browse files
committed
fix mixes of different operators
1 parent cc539e2 commit e94a5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function validate (rut) {
1919
let s = 1
2020

2121
while (t > 0) {
22-
s = (s + t % 10 * (9 - m++ % 6)) % 11
22+
s = (s + ((t % 10) * (9 - (m++ % 6)))) % 11
2323
t = Math.floor(t / 10)
2424
}
2525

0 commit comments

Comments
 (0)