filtering out wildcard domains with no remotes left
Bu işleme şunda yer alıyor:
ebeveyn
8e71ae02cf
işleme
d82530e1db
@ -36,7 +36,7 @@ Devices.list = function (store, servername) {
|
|||||||
// first so the one with the biggest natural match with be found first.
|
// first so the one with the biggest natural match with be found first.
|
||||||
var deviceList = [];
|
var deviceList = [];
|
||||||
Object.keys(store).filter(function (pattern) {
|
Object.keys(store).filter(function (pattern) {
|
||||||
return pattern[0] === '*';
|
return pattern[0] === '*' && store[pattern].length;
|
||||||
}).sort(function (a, b) {
|
}).sort(function (a, b) {
|
||||||
return b.length - a.length;
|
return b.length - a.length;
|
||||||
}).some(function (pattern) {
|
}).some(function (pattern) {
|
||||||
|
|||||||
Yükleniyor…
x
Yeni konuda referans
Bir kullanıcı engelle