From a6c15bd4249a2b1d4fe43c9e58cf0d3aed7848b6 Mon Sep 17 00:00:00 2001 From: sunzigang <35128999+sunzigang@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:58:56 +0800 Subject: [PATCH] Fix bugs where the r index is wrong --- web/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/index.js b/web/index.js index 4abccb2..acd3e50 100644 --- a/web/index.js +++ b/web/index.js @@ -91,11 +91,11 @@ function generate_opts_string(args) { var symbols = ''; var ranges = []; for (var j = 0; j < r.length; j++) { - if (r[i].symbols) { - symbols += r[i].symbols; + if (r[j].symbols) { + symbols += r[j].symbols; } - for (var k = 0; k < r[i].range.length; k += 3) { - ranges.push(generate_range(r[i].range[k + 0], r[i].range[k + 1], r[i].range[k + 2])); + for (var k = 0; k < r[j].range.length; k += 3) { + ranges.push(generate_range(r[j].range[k + 0], r[j].range[k + 1], r[j].range[k + 2])); } } if (symbols) {