Added partial tag matching, #3136

This commit is contained in:
Ylian Saint-Hilaire 2021-09-16 09:53:33 -07:00
parent 02e8f747b8
commit a9997541e5

View File

@ -5480,7 +5480,7 @@
// Tag filter
for (var d in nodes) {
if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(d); }
else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase() == tagSearch) { r.push(d); break; } }}
else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase().indexOf(tagSearch) >= 0) { r.push(d); break; } }}
}
} else if (agentTagSearch != null) {
// Agent Tag filter