diff options
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js | 4 |
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 ['-']; |