luci-base: fix regular expression in network.Protocol.getDevices()
authorJo-Philipp Wich <jo@mein.io>
Fri, 5 Jul 2019 10:00:11 +0000 (12:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:26 +0000 (15:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js

index 978fabae68f6c4671497565a75ff3dea3d6f78a9..cfaec34298e3ee750f7a4c730684cca11f4b9756 100644 (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));
                }