diff options
author | John Resig <jeresig@gmail.com> | 2009-07-19 13:21:51 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-07-19 13:21:51 +0000 |
commit | 0d5c3a68a092401089c9242bdafdb1b2534feb6a (patch) | |
tree | 0b52439fb625115252239bbbf66cfc39d0fae9ae /src/core.js | |
parent | a3b8ac413f9c55994922c20b39223ab9ae6d1afa (diff) | |
download | jquery-0d5c3a68a092401089c9242bdafdb1b2534feb6a.tar.gz jquery-0d5c3a68a092401089c9242bdafdb1b2534feb6a.zip |
Standardizing on .test() and .exec() - moving away from using .match() for RegExp. Fixes jQuery bug #4113.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index a74f0fec9..2a064c27e 100644 --- a/src/core.js +++ b/src/core.js @@ -474,7 +474,7 @@ jQuery.extend({ // It's included for backwards compatibility and plugins, // although they should work to migrate away. browser: { - version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1], + version: (/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/.exec(userAgent) || [0,'0'])[1], safari: /webkit/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), |