1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: Filtering doesn't deal with carriage returns - 6313 - thanks to Jonathan Camp for this fix.

This commit is contained in:
Allan Jardine 2011-11-23 07:28:16 +00:00
parent 2c14233057
commit 1f02ac87fc

View File

@ -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 )
{