diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-10-05 11:08:29 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-10-05 11:08:29 +0200 |
commit | 30f1dc178a3554a5d468ae9b78ba71cf9eeab63b (patch) | |
tree | 434d3a780aea5e34ec014e66970d137df78cde75 | |
parent | 194f3449751b90c1f8d7ec3625ab26594bc808c6 (diff) |
Fix iteration order in codeq.codePointCount
-rw-r--r-- | js/codeq/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/core.js b/js/codeq/core.js index 72b4532..2d88f18 100644 --- a/js/codeq/core.js +++ b/js/codeq/core.js @@ -420,7 +420,7 @@ codeq.log.error(code); return 0; } - for (i = s.length - 1; i >= 0; i--) { + for (i = 0; i < s.length; i++) { try { code = s.charCodeAt(i); } |