From: Jo-Philipp Wich Date: Fri, 5 Jul 2019 10:00:11 +0000 (+0200) Subject: luci-base: fix regular expression in network.Protocol.getDevices() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00a3da1fb3c60a40dde0ad36d13c0fe47fc0374e;p=oweals%2Fluci.git luci-base: fix regular expression in network.Protocol.getDevices() Signed-off-by: Jo-Philipp Wich --- 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)); }