From 00a3da1fb3c60a40dde0ad36d13c0fe47fc0374e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 5 Jul 2019 12:00:11 +0200 Subject: [PATCH] luci-base: fix regular expression in network.Protocol.getDevices() Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.25.1