Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #15 from brunopgalvao/patch-2

support for blank space
  • Loading branch information...
commit bc8bd1cbc0ed0757fb255e6276ddf3a729a27593 2 parents 90fd600 + bc9f1f3
@DataTables authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sorting/formatted-numbers.js
View
2  sorting/formatted-numbers.js
@@ -9,7 +9,7 @@
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"formatted-num-pre": function ( a ) {
- a = (a==="-") ? 0 : a.replace( /[^\d\-\.]/g, "" );
+ a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
return parseFloat( a );
},
Please sign in to comment.
Something went wrong with that request. Please try again.