luci-app-statistics: Fix b4a25a19a "Fix variable scope"
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 15 Sep 2024 12:51:21 +0000 (15:51 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 15 Sep 2024 12:51:21 +0000 (15:51 +0300)
Add the missing parenthesis to line 199, removed by b4a25a19a.

Fixes commit b4a25a19a

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/root/usr/libexec/stat-genconfig

index f184e880b2ac2e39ae49986fce43d0398b2e550e..130f8f3876149221bc094d194de372ef44eebeb9 100755 (executable)
@@ -196,7 +196,7 @@ function config_iptables(c) {
                                let tname = `${s.table}`;
                                let chain = `${s.chain}`;
 
-                               if (match(tname, /^\S+$/) && match(chain, /^\S+$/) {
+                               if (match(tname, /^\S+$/) && match(chain, /^\S+$/)) {
                                        str += `\t${verb} "${tname}" "${chain}"`;
 
                                        let rule = `${s.rule}`;