remove special chars when searching

This commit is contained in:
David 2017-05-19 17:51:53 -04:00
parent 20562a1d84
commit eb06ceec87

View File

@ -50,7 +50,7 @@
renderTable(_.filter(data, function(book) {
return _.find(_.pick(book, relevantFields), function(field) {
return field.toLowerCase().indexOf(searchBy) !== -1;
return field.toLowerCase().replace('"', '').replace(':', '').indexOf(searchBy) !== -1;
});
}));
}