git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
003af8e
)
Added some improvements to how the browser version is determined, based upon the...
author
John Resig
<jeresig@gmail.com>
Sat, 5 May 2007 17:57:14 +0000
(17:57 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 5 May 2007 17:57:14 +0000
(17:57 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
ebe1f8c
..
118b414
100644
(file)
--- 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),