From 30f1dc178a3554a5d468ae9b78ba71cf9eeab63b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 5 Oct 2015 11:08:29 +0200 Subject: Fix iteration order in codeq.codePointCount --- js/codeq/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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); } -- cgit v1.2.1