Current Path :
/
home
/
develito
/
www
/
media
/
lib_eshiol_core
/
js
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/media/lib_eshiol_core/js/version_compare.min.js
function versionCompare(e,r,t){var n=t&&t.lexicographical,l=t&&t.zeroExtend,h=e.split("."),i=r.split(".");function u(e){return(n?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!h.every(u)||!i.every(u))return NaN;if(l){for(;h.length<i.length;)h.push("0");for(;i.length<h.length;)i.push("0")}n||(h=h.map(Number),i=i.map(Number));for(var a=0;a<h.length;++a){if(i.length==a)return 1;if(h[a]!=i[a])return h[a]>i[a]?1:-1}return h.length!=i.length?-1:0}