aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index ab0d9f7b5..2f5ac426a 100644
--- a/src/core.js
+++ b/src/core.js
@@ -39,6 +39,7 @@ var jQuery = function( selector, context ) {
rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
// Useragent RegExp
+ rchrome = /(chrome)[ \/]([\w.]+)/,
rwebkit = /(webkit)[ \/]([\w.]+)/,
ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
rmsie = /(msie) ([\w.]+)/,
@@ -829,7 +830,8 @@ jQuery.extend({
uaMatch: function( ua ) {
ua = ua.toLowerCase();
- var match = rwebkit.exec( ua ) ||
+ var match = rchrome.exec( ua ) ||
+ rwebkit.exec( ua ) ||
ropera.exec( ua ) ||
rmsie.exec( ua ) ||
ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||