From b9751888a1f08045e589a5e3c83094a81319bf0e Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 15 Sep 2024 15:51:21 +0300 Subject: [PATCH] luci-app-statistics: Fix b4a25a19a "Fix variable scope" Add the missing parenthesis to line 199, removed by b4a25a19a. Fixes commit b4a25a19a Signed-off-by: Hannu Nyman --- .../luci-app-statistics/root/usr/libexec/stat-genconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig index f184e880b2..130f8f3876 100755 --- a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig @@ -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}`; -- 2.30.2