summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-07-05 12:00:11 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:36:26 +0200
commit00a3da1fb3c60a40dde0ad36d13c0fe47fc0374e (patch)
tree6cf88465b82578fb0fc182c043ed08f29c148c15 /modules
parent9c16090780b7430ffe88c770732604f6eb6cfda6 (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.js2
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));
}