"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/sorts/tablesort.number.min.js" between
tablesort-5.2.1.tar.gz and tablesort-5.3.0.tar.gz

About: tablesort is a small and simple sorting component for HTML tables (written in JavaScript).

tablesort.number.min.js  (tablesort-5.2.1):tablesort.number.min.js  (tablesort-5.3.0)
/*! /*!
* tablesort v5.2.1 (2020-06-02) * tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/ * http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT * Copyright (c) 2021 ; Licensed MIT
*/ */
!function(){var a=function(a){return a.replace(/[^\-?0-9.]/g,"")},b=function(a,b ){return a=parseFloat(a),b=parseFloat(b),a=isNaN(a)?0:a,b=isNaN(b)?0:b,a-b};Tabl esort.extend("number",function(a){return a.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.] \d{0,2})/)||a.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||a.match(/^[-+]?(\ d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(c,d){return c=a(c),d=a (d),b(d,c)})}(); !function(){var a=function(a){return a.replace(/[^\-?0-9.]/g,"")},b=function(a,b ){return a=parseFloat(a),b=parseFloat(b),a=isNaN(a)?0:a,b=isNaN(b)?0:b,a-b};Tabl esort.extend("number",function(a){return a.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.] \d{0,2})/)||a.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||a.match(/^[-+]?(\ d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(c,d){return c=a(c),d=a (d),b(d,c)})}();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)