summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/codeq/core.js2
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);
}