mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Make the function search to look for the prefix
This commit is contained in:
parent
7d7bc72364
commit
86e7f282e0
@ -61,7 +61,7 @@
|
|||||||
// check against the pattern
|
// check against the pattern
|
||||||
var noMatches = true;
|
var noMatches = true;
|
||||||
functionElems.forEach((item) => {
|
functionElems.forEach((item) => {
|
||||||
if (item.innerText.toLowerCase().indexOf(pattern) !== -1) {
|
if (item.innerText.toLowerCase().startsWith(pattern.toLowerCase())) {
|
||||||
item.className = 'match';
|
item.className = 'match';
|
||||||
noMatches = false;
|
noMatches = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user