luci-app-statistics: iptables.js: fix rule match expression

Fixes: #3658
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-21 08:56:48 +01:00
parent c16f91ccb9
commit 27d63e7e71

View file

@ -33,7 +33,7 @@ return L.Class.extend({
table = m[1];
count = {};
}
else if ((m = lines[i].match(/^-A (.+?) (-.+)$/)) != null) {
else if ((m = lines[i].match(/^-A (.+?) ([!-].+)$/)) != null) {
count[m[1]] = (count[m[1]] || 0) + 1;
iptables[table] = iptables[table] || {};