From: Hannu Nyman Date: Sun, 15 Sep 2024 12:51:21 +0000 (+0300) Subject: luci-app-statistics: Fix b4a25a19a "Fix variable scope" X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b9751888a1f08045e589a5e3c83094a81319bf0e;p=openwrt-luci.git 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 --- 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}`;