From 1f02ac87fc28adf31a568a427c4b915384e03486 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 23 Nov 2011 07:28:16 +0000 Subject: [PATCH] Fix: Filtering doesn't deal with carriage returns - 6313 - thanks to Jonathan Camp for this fix. --- media/js/jquery.dataTables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index e3b033c3..be4fdd28 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -4606,11 +4606,11 @@ } else if ( sType == "html" ) { - return sData.replace(/\n/g," ").replace( /<.*?>/g, "" ); + return sData.replace(/[\r\n]/g," ").replace( /<.*?>/g, "" ); } else if ( typeof sData == "string" ) { - return sData.replace(/\n/g," "); + return sData.replace(/[\r\n]/g," "); } else if ( sData === null ) {