Merge pull request #323 from MFlyer/issue#322

Add new bytes option over file-size sorting for humanize js package
pull/238/merge
Allan Jardine 8 years ago committed by GitHub
commit bf2280e6a0

@ -22,6 +22,7 @@ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) {
var matches = data.match( /^(\d+(?:\.\d+)?)\s*([a-z]+)/i ); var matches = data.match( /^(\d+(?:\.\d+)?)\s*([a-z]+)/i );
var multipliers = { var multipliers = {
b: 1, b: 1,
bytes: 1,
kb: 1000, kb: 1000,
kib: 1024, kib: 1024,
mb: 1000000, mb: 1000000,

Loading…
Cancel
Save