From fbee1415d0d500ca4240fd7002f985013871ee0d Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 28 Mar 2018 15:00:34 +0100 Subject: [PATCH] Fix #371: Limit search to a per item basis when multi-item searching --- features/searchPane/dataTables.searchPane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/searchPane/dataTables.searchPane.js b/features/searchPane/dataTables.searchPane.js index 42d5d73..31fffd7 100644 --- a/features/searchPane/dataTables.searchPane.js +++ b/features/searchPane/dataTables.searchPane.js @@ -244,14 +244,14 @@ table .column(pane.data('column')) .search( - '^' + + '^(' + $.map(filters, function(filter) { var d = $(filter) .data('filter') .toString(); return $.fn.dataTable.util.escapeRegex(d); }).join('|') + - '$', + ')$', true, false )