Skip to content

Commit

Permalink
Fix filter not processing extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Jan 22, 2019
1 parent cd2e70b commit 4a6e025
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions InteractiveHtmlBom/web/ibom.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ function entryMatches(entry) {
return true;
}
}
// check extra fields
for (var i in config.extra_fields) {
if (entry[4][i].toLowerCase().indexOf(filter) >= 0) {
return true;
}
}
// check value
if (entry[1].toLowerCase().indexOf(filter) >= 0) {
return true;
Expand Down

0 comments on commit 4a6e025

Please sign in to comment.