]> source.dussan.org Git - jquery.git/commitdiff
Added some improvements to how the browser version is determined, based upon the...
authorJohn Resig <jeresig@gmail.com>
Sat, 5 May 2007 17:57:14 +0000 (17:57 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 5 May 2007 17:57:14 +0000 (17:57 +0000)
src/jquery/jquery.js

index ebe1f8c5feb13ef9ed28df0551ea981c34f205fd..118b4148756141428e64a525f2751abad5b5bc88 100644 (file)
@@ -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),