remove special chars when searching
This commit is contained in:
parent
20562a1d84
commit
eb06ceec87
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
renderTable(_.filter(data, function(book) {
|
renderTable(_.filter(data, function(book) {
|
||||||
return _.find(_.pick(book, relevantFields), function(field) {
|
return _.find(_.pick(book, relevantFields), function(field) {
|
||||||
return field.toLowerCase().indexOf(searchBy) !== -1;
|
return field.toLowerCase().replace('"', '').replace(':', '').indexOf(searchBy) !== -1;
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user