Skip to content

Commit

Permalink
Prepare 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed Oct 30, 2021
1 parent 1a1bcda commit 4fec8c3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dist/sorts/tablesort.date.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tablesort v5.2.1 (2020-07-06)
* tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT
* Copyright (c) 2021 ; Licensed MIT
*/
!function(){var a=function(a){return a=a.replace(/\-/g,"/"),a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2,4})/,"$3-$2-$1"),new Date(a).getTime()||-1};Tablesort.extend("date",function(b){return(-1!==b.search(/(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\.?\,?\s*/i)||-1!==b.search(/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/)||-1!==b.search(/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/i))&&!isNaN(a(b))},function(b,c){return b=b.toLowerCase(),c=c.toLowerCase(),a(c)-a(b)})}();
4 changes: 2 additions & 2 deletions dist/sorts/tablesort.dotsep.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tablesort v5.2.1 (2020-07-06)
* tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT
* Copyright (c) 2021 ; Licensed MIT
*/
Tablesort.extend("dotsep",function(a){return/^(\d+\.)+\d+$/.test(a)},function(a,b){a=a.split("."),b=b.split(".");for(var c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(a[e],10),d=parseInt(b[e],10),c!==d){if(c>d)return-1;if(c<d)return 1}return 0});
4 changes: 2 additions & 2 deletions dist/sorts/tablesort.filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/sorts/tablesort.monthname.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tablesort v5.2.1 (2020-07-06)
* tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT
* Copyright (c) 2021 ; Licensed MIT
*/
!function(){Tablesort.extend("monthname",function(a){return-1!==a.search(/(January|February|March|April|May|June|July|August|September|October|November|December)/i)},function(a,b){var c=["January","February","March","April","May","June","July","August","September","October","November","December"];return c.indexOf(b)-c.indexOf(a)})}();
4 changes: 2 additions & 2 deletions dist/sorts/tablesort.number.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tablesort v5.2.1 (2020-07-06)
* tablesort v5.2.1 (2021-10-30)
* 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};Tablesort.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)})}();
4 changes: 2 additions & 2 deletions dist/tablesort.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tablesort",
"description": "A sorting component for HTML tables",
"version": "5.2.1",
"version": "5.3.0",
"author": "tristen",
"license": "MIT",
"main": "./src/tablesort.js",
Expand Down

0 comments on commit 4fec8c3

Please sign in to comment.