From 1eb23d9c82c972e1703e72630948ccee812466b4 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 30 Nov 2017 13:46:47 +0000 Subject: [PATCH] Feature - searchPane: Regex escaping --- features/searchPane/dataTables.searchPane.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/searchPane/dataTables.searchPane.js b/features/searchPane/dataTables.searchPane.js index 122165a..9a79956 100644 --- a/features/searchPane/dataTables.searchPane.js +++ b/features/searchPane/dataTables.searchPane.js @@ -3,7 +3,6 @@ // - Styling for container / header // - Styling for clear option // - State saving integration -// - Fix regex characters - (CEO) for example (function(factory) { if (typeof define === 'function' && define.amd) { @@ -209,7 +208,7 @@ .column(pane.data('column')) .search( $.map(filters, function(filter) { - return $(filter).data('filter'); + return $.fn.dataTable.util.escapeRegex( $(filter).data('filter') ); }).join('|'), true, false