luci-app-statistics: iptables.js: fix rule match expression
authorJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 07:56:48 +0000 (08:56 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 07:57:29 +0000 (08:57 +0100)
Fixes: #3658
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js

index a1b67c1b1775d3a9739e81131a7e1d3153ead886..00d0ec88ff5a42b5019fb00eaadde26506f6630b 100644 (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] || {};