luci-base: fix regular expression in network.Protocol.getDevices()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-05 12:00:11 +02:00
parent 9c16090780
commit 00a3da1fb3

View file

@ -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));
}