diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-05 12:00:11 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-07 15:36:26 +0200 |
commit | 00a3da1fb3c60a40dde0ad36d13c0fe47fc0374e (patch) | |
tree | 6cf88465b82578fb0fc182c043ed08f29c148c15 /modules | |
parent | 9c16090780b7430ffe88c770732604f6eb6cfda6 (diff) |
luci-base: fix regular expression in network.Protocol.getDevices()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 978fabae6..cfaec3429 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -1539,7 +1539,7 @@ Protocol = L.Class.extend({ if (ifnames[i].charAt(0) == '@') continue; - var m = ifnames[i].match(/^([:/]+)/); + var m = ifnames[i].match(/^([^:/]+)/); if (m != null) rv.push(L.network.instantiateDevice(m[1], this)); } |