Ignore spaces in string filter when not exact

master
Max 4 years ago
parent f571401b8d
commit 67ea803bd0

@ -26,8 +26,9 @@ export function customTableFilterFunction(data: any, filter: any) {
return false;
}
if (!filterElement.options.caseSensitive) {
searchString = searchString.toLowerCase();
dataElement = dataElement.toLowerCase();
searchString = searchString.toLowerCase().replace(/\s/g, '');
dataElement = dataElement.toLowerCase().replace(/\s/g, '');
console.log(searchString, dataElement);
}
if (
(filterElement.options.exact && dataElement !== searchString) ||

Loading…
Cancel
Save