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: http://git.lede-project.org./?a=commitdiff_plain;h=00a3da1fb3c60a40dde0ad36d13c0fe47fc0374e;p=project%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 978fabae68..cfaec34298 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)); }