filtering out wildcard domains with no remotes left

This commit is contained in:
tigerbot 2017-05-26 18:18:06 -06:00
parent 8e71ae02cf
commit d82530e1db
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni

Vedi File

@ -36,7 +36,7 @@ Devices.list = function (store, servername) {
// first so the one with the biggest natural match with be found first.
var deviceList = [];
Object.keys(store).filter(function (pattern) {
return pattern[0] === '*';
return pattern[0] === '*' && store[pattern].length;
}).sort(function (a, b) {
return b.length - a.length;
}).some(function (pattern) {