Custom filter not working if search string contains space
Custom filter not working if search string contains space

I've a custom filter, bound to a dropdownlist where the user can select one element to filter the records.
The function to apply the filter is this:
function filterCategoria() {
var filter = $('#categoria_filter').val();
if (filter != null) {
$('#dtRicette').DataTable().column(2).search(
filter
).draw();
} else {
$('#dtRicette').DataTable().search('').draw();
}
}
Everything is working fine, only if the search string doesn't containt any space. If contain space the result of the filter is empty.
How can I fix it?
Thanks.
This discussion has been closed.
Answers
Searching with spaces works in this example:
http://live.datatables.net/fepirapa/1/edit
We will need to see an example of the problem to help debug. Please post a link to your page or a test case replicating the issue. You can update my test case if you want.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin