mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
2 lines
362 B
JavaScript
2 lines
362 B
JavaScript
/*! Parser: leading zeros - updated 4/2/2017 (v2.28.6) */
|
|
!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); |