tablesorter/dist/js/parsers/parser-leading-zeros.min.js

2 lines
362 B
JavaScript
Raw Normal View History

2017-04-02 11:33:20 +00:00
/*! Parser: leading zeros - updated 4/2/2017 (v2.28.6) */
2017-05-16 20:33:15 +00:00
!function(e){"use strict";var t=e.tablesorter;t.addParser({id:"leadingZeros",is:function(){return!1},format:function(e,r){var n=(e||"").replace(t.regex.nondigit,""),a=t.formatFloat(n,r),i=a.toString();return isNaN(a)||a!=n||n.length===i.length||(a-=1e-10*(e.length-i.length)),a},type:"number"})}(jQuery);