Feature - searchPane: Regex escaping

pull/355/head
Allan Jardine 7 years ago
parent 2e4a8c2aa0
commit 1eb23d9c82

@ -3,7 +3,6 @@
// - Styling for container / header // - Styling for container / header
// - Styling for clear option // - Styling for clear option
// - State saving integration // - State saving integration
// - Fix regex characters - (CEO) for example
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -209,7 +208,7 @@
.column(pane.data('column')) .column(pane.data('column'))
.search( .search(
$.map(filters, function(filter) { $.map(filters, function(filter) {
return $(filter).data('filter'); return $.fn.dataTable.util.escapeRegex( $(filter).data('filter') );
}).join('|'), }).join('|'),
true, true,
false false

Loading…
Cancel
Save