Skip to content

Commit

Permalink
fix mixes of different operators
Browse files Browse the repository at this point in the history
  • Loading branch information
jlobos committed Mar 2, 2017
1 parent cc539e2 commit e94a5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function validate (rut) {
let s = 1

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

Expand Down

0 comments on commit e94a5fc

Please sign in to comment.