|
|
|
@ -38,10 +38,9 @@ $.fn.dataTable.moment = function ( format, locale ) {
|
|
|
|
|
if ( d.replace ) {
|
|
|
|
|
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
|
|
|
|
}
|
|
|
|
|
// Strip out surrounding whitespace if possible
|
|
|
|
|
if ( d.trim ) {
|
|
|
|
|
d = d.trim();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Strip out surrounding white space
|
|
|
|
|
d = $.trim( d );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Null and empty values are acceptable
|
|
|
|
@ -61,10 +60,9 @@ $.fn.dataTable.moment = function ( format, locale ) {
|
|
|
|
|
if ( d.replace ) {
|
|
|
|
|
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
|
|
|
|
}
|
|
|
|
|
// Strip out surrounding whitespace if possible
|
|
|
|
|
if ( d.trim ) {
|
|
|
|
|
d = d.trim();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Strip out surrounding white space
|
|
|
|
|
d = $.trim( d );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return d === '' || d === null ?
|
|
|
|
|