From: John Resig Date: Sat, 5 May 2007 17:57:14 +0000 (+0000) Subject: Added some improvements to how the browser version is determined, based upon the... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=1501447c7066bb7684dcfc34fb1dd3df512862de;p=jquery.git Added some improvements to how the browser version is determined, based upon the suggestions of 'hobbit' in [1101]. --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index ebe1f8c..118b414 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1799,7 +1799,7 @@ new function() { // Figure out what browser is being used jQuery.browser = { - version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1], + version: b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1], safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b),