From 1501447c7066bb7684dcfc34fb1dd3df512862de Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 5 May 2007 17:57:14 +0000 Subject: [PATCH] Added some improvements to how the browser version is determined, based upon the suggestions of 'hobbit' in [1101]. --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index ebe1f8c5..118b4148 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),