From c248db6146b025b7d4526ec857b41527e0e7b8c8 Mon Sep 17 00:00:00 2001 From: bubkoo Date: Mon, 11 Jul 2016 14:12:26 +0800 Subject: [PATCH] build v1.0.6 --- dist/natsort.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/natsort.min.js b/dist/natsort.min.js index 2c6881c..be20fcf 100644 --- a/dist/natsort.min.js +++ b/dist/natsort.min.js @@ -1 +1 @@ -!function(){"use strict";function e(e){function t(e){return e.toLocaleLowerCase?e.toLocaleLowerCase():e.toLowerCase()}function r(e){return e.replace(d,"\x00$1\x00").replace(/\0$/,"").replace(/^\0/,"").split("\x00")}function n(e,t){return(!e.match(i)||1===t)&&parseFloat(e)||e.replace(f," ").replace(u,"")||0}e=e||{};var a=e.desc?-1:1,o=-a,i=/^0/,f=/\s+/g,u=/^\s+|\s+$/g,c=/[^\x00-\x80]/,s=/^0x[0-9a-f]+$/i,d=/(0x[\da-fA-F]+|(^[\+\-]?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?(?=\D|\s|$))|\d+)/g,p=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=e.insensitive?function(e){return t(""+e).replace(u,"")}:function(e){return(""+e).replace(u,"")};return function(e,t){var i=l(e),f=l(t);if(!i&&!f)return 0;if(!i&&f)return o;if(i&&!f)return a;var u=r(i),d=r(f),w=parseInt(i.match(s),16)||1!==u.length&&Date.parse(i),x=parseInt(f.match(s),16)||w&&f.match(p)&&Date.parse(f)||null;if(x){if(x>w)return o;if(w>x)return a}for(var m=u.length,h=d.length,v=0,g=Math.max(m,h);g>v;v++){var N=n(u[v]||"",m),y=n(d[v]||"",h);if(isNaN(N)!==isNaN(y))return isNaN(N)?a:o;if(c.test(N+y)&&N.localeCompare){var C=N.localeCompare(y);return C>0?a:0>C?o:0}if(y>N)return o;if(N>y)return a}return 0}}"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define([],function(){return e}):"object"==typeof exports?exports.natsort=e:("undefined"!=typeof window?window:this).natsort=e}(); \ No newline at end of file +!function(){"use strict";function e(e){function r(e){return e.toLocaleLowerCase?e.toLocaleLowerCase():e.toLowerCase()}function t(e){return e.replace(d,"\x00$1\x00").replace(/\0$/,"").replace(/^\0/,"").split("\x00")}function n(e,r){return(!e.match(i)||1===r)&&parseFloat(e)||e.replace(f," ").replace(u,"")||0}e=e||{};var a=e.desc?-1:1,o=-a,i=/^0/,f=/\s+/g,u=/^\s+|\s+$/g,c=/[^\x00-\x80]/,s=/^0x[0-9a-f]+$/i,d=/(0x[\da-fA-F]+|(^[\+\-]?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?(?=\D|\s|$))|\d+)/g,p=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=e.insensitive?function(e){return r(""+e).replace(u,"")}:function(e){return(""+e).replace(u,"")};return function(e,r){var i=l(e),f=l(r);if(!i&&!f)return 0;if(!i&&f)return o;if(i&&!f)return a;var u=t(i),d=t(f),w=parseInt(i.match(s),16)||1!==u.length&&Date.parse(i),x=parseInt(f.match(s),16)||w&&f.match(p)&&Date.parse(f)||null;if(x){if(x>w)return o;if(w>x)return a}for(var m=u.length,h=d.length,v=0,g=Math.max(m,h);g>v;v++){var N=n(u[v]||"",m),y=n(d[v]||"",h);if(isNaN(N)!==isNaN(y))return isNaN(N)?a:o;if(c.test(N+y)&&N.localeCompare){var C=N.localeCompare(y);if(C>0)return a;if(0>C)return o;if(v===g-1)return 0}else{if(y>N)return o;if(N>y)return a}}return 0}}"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define([],function(){return e}):"object"==typeof exports?exports.natsort=e:("undefined"!=typeof window?window:this).natsort=e}(); \ No newline at end of file