luci-base: fix regular expression in network.Protocol.getDevices()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
9c16090780
commit
00a3da1fb3
1 changed files with 1 additions and 1 deletions
|
@ -1539,7 +1539,7 @@ Protocol = L.Class.extend({
|
||||||
if (ifnames[i].charAt(0) == '@')
|
if (ifnames[i].charAt(0) == '@')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var m = ifnames[i].match(/^([:/]+)/);
|
var m = ifnames[i].match(/^([^:/]+)/);
|
||||||
if (m != null)
|
if (m != null)
|
||||||
rv.push(L.network.instantiateDevice(m[1], this));
|
rv.push(L.network.instantiateDevice(m[1], this));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue