Fix #371: Limit search to a per item basis when multi-item searching

pull/375/head
Allan Jardine 7 years ago
parent a7cc270b20
commit fbee1415d0

@ -244,14 +244,14 @@
table table
.column(pane.data('column')) .column(pane.data('column'))
.search( .search(
'^' + '^(' +
$.map(filters, function(filter) { $.map(filters, function(filter) {
var d = $(filter) var d = $(filter)
.data('filter') .data('filter')
.toString(); .toString();
return $.fn.dataTable.util.escapeRegex(d); return $.fn.dataTable.util.escapeRegex(d);
}).join('|') + }).join('|') +
'$', ')$',
true, true,
false false
) )

Loading…
Cancel
Save