aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-05-05 17:57:14 +0000
committerJohn Resig <jeresig@gmail.com>2007-05-05 17:57:14 +0000
commit1501447c7066bb7684dcfc34fb1dd3df512862de (patch)
tree34ef74ff5ed2d00c7263983b67b5d1203f58cc0c /src
parent003af8e383be2bf6f60338aa6135332ad33ba990 (diff)
downloadjquery-1501447c7066bb7684dcfc34fb1dd3df512862de.tar.gz
jquery-1501447c7066bb7684dcfc34fb1dd3df512862de.zip
Added some improvements to how the browser version is determined, based upon the suggestions of 'hobbit' in [1101].
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js2
1 files changed, 1 insertions, 1 deletions
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),