Skip to content

Commit c6330ad

Browse files
authored
Search functionality fixed for technology and region (#1960)
2 parents fc66bb7 + debfcd5 commit c6330ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

site/assets/companies-table.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ function setupSearch() {
5656
if (searchValue) {
5757
searchData.textData.forEach(function (company, index) {
5858
var companyName = company.nameText.toLowerCase();
59-
if (companyName.includes(searchValue)) {
59+
var companyTech = company.companyTechnologies ? company.companyTechnologies.toLowerCase() : '';
60+
var region = company.region ? company.region.toLowerCase() : '';
61+
if (companyName.includes(searchValue) || companyTech.includes(searchValue) || region.includes(searchValue)) {
6062
exactMatchResults.push({ ref: index });
6163
}
6264
});

0 commit comments

Comments
 (0)