diff --git a/src/URI.min.js b/src/URI.min.js index d24a5371..9c66b0f9 100644 --- a/src/URI.min.js +++ b/src/URI.min.js @@ -1,4 +1,4 @@ -/*! URI.js v1.18.9 http://medialize.github.io/URI.js/ */ +/*! URI.js v1.18.10 http://medialize.github.io/URI.js/ */ /* build contains: IPv6.js, punycode.js, SecondLevelDomains.js, URI.js, URITemplate.js */ (function(g,k){"object"===typeof module&&module.exports?module.exports=k():"function"===typeof define&&define.amd?define(k):g.IPv6=k(g)})(this,function(g){var k=g&&g.IPv6;return{best:function(h){h=h.toLowerCase().split(":");var l=h.length,b=8;""===h[0]&&""===h[1]&&""===h[2]?(h.shift(),h.shift()):""===h[0]&&""===h[1]?h.shift():""===h[l-1]&&""===h[l-2]&&h.pop();l=h.length;-1!==h[l-1].indexOf(".")&&(b=7);var m;for(m=0;mg;g++)if("0"===l[0]&&1g&&(l=f,g=k)):"0"===h[m]&&(n=!0,f=m,k=1);k>g&&(l=f,g=k);1=b||b>=g.length-1)return!1; -var l=g.lastIndexOf(".",b-1);if(0>=l||l>=b-1)return!1;var k=h.list[g.slice(b+1)];return k?0<=k.indexOf(" "+g.slice(l+1,b)+" "):!1},is:function(g){var b=g.lastIndexOf(".");if(0>=b||b>=g.length-1||0<=g.lastIndexOf(".",b-1))return!1;var l=h.list[g.slice(b+1)];return l?0<=l.indexOf(" "+g.slice(0,b)+" "):!1},get:function(g){var b=g.lastIndexOf(".");if(0>=b||b>=g.length-1)return null;var l=g.lastIndexOf(".",b-1);if(0>=l||l>=b-1)return null;var k=h.list[g.slice(b+1)];return!k||0>k.indexOf(" "+g.slice(l+ -1,b)+" ")?null:g.slice(l+1)},noConflict:function(){g.SecondLevelDomains===this&&(g.SecondLevelDomains=k);return this}};return h}); +us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ", +org:"ae",de:"com "},has:function(g){var b=g.lastIndexOf(".");if(0>=b||b>=g.length-1)return!1;var l=g.lastIndexOf(".",b-1);if(0>=l||l>=b-1)return!1;var k=h.list[g.slice(b+1)];return k?0<=k.indexOf(" "+g.slice(l+1,b)+" "):!1},is:function(g){var b=g.lastIndexOf(".");if(0>=b||b>=g.length-1||0<=g.lastIndexOf(".",b-1))return!1;var l=h.list[g.slice(b+1)];return l?0<=l.indexOf(" "+g.slice(0,b)+" "):!1},get:function(g){var b=g.lastIndexOf(".");if(0>=b||b>=g.length-1)return null;var l=g.lastIndexOf(".",b-1); +if(0>=l||l>=b-1)return null;var k=h.list[g.slice(b+1)];return!k||0>k.indexOf(" "+g.slice(l+1,b)+" ")?null:g.slice(l+1)},noConflict:function(){g.SecondLevelDomains===this&&(g.SecondLevelDomains=k);return this}};return h}); (function(g,k){"object"===typeof module&&module.exports?module.exports=k(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],k):g.URI=k(g.punycode,g.IPv6,g.SecondLevelDomains,g)})(this,function(g,k,h,l){function b(a,c){var d=1<=arguments.length,p=2<=arguments.length;if(!(this instanceof b))return d?p?new b(a,c):new b(a):new b;if(void 0===a){if(d)throw new TypeError("undefined is not a valid argument for URI"); a="undefined"!==typeof location?location.href+"":""}if(null===a&&d)throw new TypeError("null is not a valid argument for URI");this.href(a);return void 0!==c?this.absoluteTo(c):this}function m(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function A(a){return void 0===a?"Undefined":String(Object.prototype.toString.call(a)).slice(8,-1)}function u(a){return"Array"===A(a)}function f(a,c){var d={},b,t;if("RegExp"===A(c))d=null;else if(u(c))for(b=0,t=c.length;b]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;b.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g};b.defaultPorts={http:"80",https:"443",ftp:"21", gopher:"70",ws:"80",wss:"443"};b.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/;b.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};b.getDomAttribute=function(a){if(a&&a.nodeName){var c=a.nodeName.toLowerCase();if("input"!==c||"image"===a.type)return b.domAttributes[c]}};b.encode=y;b.decode=decodeURIComponent;b.iso8859=function(){b.encode=escape;b.decode= diff --git a/src/jquery.URI.min.js b/src/jquery.URI.min.js index ae65585f..f5d26910 100644 --- a/src/jquery.URI.min.js +++ b/src/jquery.URI.min.js @@ -1,4 +1,4 @@ -/*! URI.js v1.18.9 http://medialize.github.io/URI.js/ */ +/*! URI.js v1.18.10 http://medialize.github.io/URI.js/ */ /* build contains: jquery.URI.js */ (function(d,e){"object"===typeof module&&module.exports?module.exports=e(require("jquery"),require("./URI")):"function"===typeof define&&define.amd?define(["jquery","./URI"],e):e(d.jQuery,d.URI)})(this,function(d,e){function h(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function k(a){var b=a.nodeName.toLowerCase();if("input"!==b||"image"===a.type)return e.domAttributes[b]}function p(a){return{get:function(b){return d(b).uri()[a]()},set:function(b,c){d(b).uri()[a](c);return c}}}function l(a, b){var c,e,f;if(!k(a)||!b)return!1;c=b.match(q);if(!c||!c[5]&&":"!==c[2]&&!g[c[2]])return!1;f=d(a).uri();if(c[5])return f.is(c[5]);if(":"===c[2])return e=c[1].toLowerCase()+":",g[e]?g[e](f,c[4]):!1;e=c[1].toLowerCase();return m[e]?g[c[2]](f[e](),c[4],e):!1}var m={},g={"=":function(a,b){return a===b},"^=":function(a,b){return!!(a+"").match(new RegExp("^"+h(b),"i"))},"$=":function(a,b){return!!(a+"").match(new RegExp(h(b)+"$","i"))},"*=":function(a,b,c){"directory"===c&&(a+="/");return!!(a+"").match(new RegExp(h(b),