It works properly for one word categories, however if there are spaces in between it doesn't show results.I'm not quite sure how to fix it, can you please check my code and let me know what is not working? Many thanks!
function applyFilters() {
var categorySearch = categoryFilters.length > 0 ? categoryFilters.map(function(f) { return '\\b' + f.replace(/\s+/g, '\\s+') + '\\b'; }).join('|') : '';
console.log('Category Search:', categorySearch); // Debug message
table.column(5).search(categorySearch, true, false);
}
I need filtering words that have spaces in between, for instance, more than one words sentences.