mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Limit search by function to one function only
This commit is contained in:
parent
4093161262
commit
0b90fa4c8f
@ -37,9 +37,11 @@
|
||||
var noResults = true;
|
||||
document.querySelectorAll('#bin-table tbody tr').forEach(function (row) {
|
||||
var binName = row.children[0].firstElementChild.innerText.toLowerCase();
|
||||
var functions = row.children[1].firstElementChild.innerText.toLowerCase();
|
||||
var against = (queryType === '/' ? functions : binName);
|
||||
var functions = Array.from(row.children[1].firstElementChild.children)
|
||||
.map(function (x) { return x.innerText })
|
||||
.join('\n').toLowerCase();
|
||||
|
||||
var against = (queryType === '/' ? functions : binName);
|
||||
if (against.indexOf(query) !== -1) {
|
||||
row.style.display = '';
|
||||
noResults = false;
|
||||
|
Loading…
Reference in New Issue
Block a user