Add string check - 10142

pull/2/head
Allan Jardine 13 years ago
parent 0a50d8c003
commit 6ea7a6ce12

@ -12,6 +12,10 @@ jQuery.fn.dataTableExt.aTypes.unshift(
{ {
var sValidChars = "0123456789.-,"; var sValidChars = "0123456789.-,";
var Char; var Char;
if ( typeof sData !== 'string' ) {
return null;
}
/* Check the numeric part */ /* Check the numeric part */
for ( i=1 ; i<sData.length ; i++ ) for ( i=1 ; i<sData.length ; i++ )

Loading…
Cancel
Save