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-Tag: 1.1.3a~15 X-Git-Url: https://source.dussan.org/?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 ebe1f8c5f..118b41487 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),