diff --git a/javascript/ext_chants.js b/javascript/ext_chants.js index 3d3e2ff..28ba2c4 100644 --- a/javascript/ext_chants.js +++ b/javascript/ext_chants.js @@ -7,7 +7,7 @@ class ChantParser extends BaseTagParser { let tempResults = []; if (tagword !== "<" && tagword !== " x.terms.toLowerCase().includes(searchTerm); + let filterCondition = x => x.terms.toLowerCase().includes(searchTerm) || x.name.toLowerCase().includes(searchTerm); tempResults = chants.filter(x => filterCondition(x)); // Filter by tagword } else { tempResults = chants;