From a64ea9e14b14cbd60db15897ec7ed5fb4d7c226e Mon Sep 17 00:00:00 2001 From: ksiegel Date: Sat, 13 Dec 2014 08:54:16 -0500 Subject: [PATCH] Updated to split at all non-alphanumeric characters, not just space --- features/searchHighlight/dataTables.searchHighlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/searchHighlight/dataTables.searchHighlight.js b/features/searchHighlight/dataTables.searchHighlight.js index c075994..d0533c7 100644 --- a/features/searchHighlight/dataTables.searchHighlight.js +++ b/features/searchHighlight/dataTables.searchHighlight.js @@ -53,7 +53,7 @@ $(document).on( 'init.dt.dth', function (e, settings, json) { // Don't highlight the "not found" row if ( table.rows( { filter: 'applied' } ).data().length ) { - body.highlight( table.search().split(' ') ); + body.highlight( table.search().split(/[^0-9A-Za-z]/) ); } } ) .on( 'destroy', function () {