summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-17 17:44:21 +0200
committerJo-Philipp Wich <jo@mein.io>2021-06-17 17:44:21 +0200
commite57f8663afd53cc7421debcd63444e1d136f5dec (patch)
treeaa8fabc611f565b189041ed3b5f94b6333893180 /modules/luci-mod-network/htdocs
parent01eac366f69ba58c090ddc2cb70aeb069adbdd5a (diff)
luci-mod-network: parse ports without tag/pvid annotation as well
Fixes: 01eac366f6 ("luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
index bba0e80f87..e066cb43dd 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
@@ -272,9 +272,9 @@ var cbiTagValue = form.Value.extend({
if (s[0] != this.port)
continue;
- var t = s[1].match(/t/) ? 't' : 'u';
+ var t = /t/.test(s[1] || '') ? 't' : 'u';
- return s[1].match(/\*/) ? [t, '*'] : [t];
+ return /\*/.test(s[1] || '') ? [t, '*'] : [t];
}
return ['-'];