Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
2a045f82
Commit
2a045f82
authored
Aug 26, 2011
by
timmywil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385"
This reverts commit
dd93d0eb
.
parent
e2187f49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
core.js
src/core.js
+1
-3
ua.txt
test/data/ua.txt
+2
-2
No files found.
src/core.js
View file @
2a045f82
...
...
@@ -39,7 +39,6 @@ var jQuery = function( selector, context ) {
rvalidbraces
=
/
(?:
^|:|,
)(?:\s
*
\[)
+/g
,
// Useragent RegExp
rchrome
=
/
(
chrome
)[
\/]([\w
.
]
+
)
/
,
rwebkit
=
/
(
webkit
)[
\/]([\w
.
]
+
)
/
,
ropera
=
/
(
opera
)(?:
.*version
)?[
\/]([\w
.
]
+
)
/
,
rmsie
=
/
(
msie
)
([\w
.
]
+
)
/
,
...
...
@@ -838,8 +837,7 @@ jQuery.extend({
uaMatch
:
function
(
ua
)
{
ua
=
ua
.
toLowerCase
();
var
match
=
rchrome
.
exec
(
ua
)
||
rwebkit
.
exec
(
ua
)
||
var
match
=
rwebkit
.
exec
(
ua
)
||
ropera
.
exec
(
ua
)
||
rmsie
.
exec
(
ua
)
||
ua
.
indexOf
(
"compatible"
)
<
0
&&
rmozilla
.
exec
(
ua
)
||
...
...
test/data/ua.txt
View file @
2a045f82
...
...
@@ -37,8 +37,8 @@ mozilla 1.0.1 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.0.1) G
mozilla 1.8.0.10 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.10) Gecko/20070228 Camino/1.0.4
webkit 418.9 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko, Safari) Safari/419.3 Cheshire/1.0.ALPHA
webkit 419 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/419 (KHTML, like Gecko, Safari/419.3) Cheshire/1.0.ALPHA
chrome
525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19
chrome
525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19
webkit
525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19
webkit
525.19 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19
mozilla 1.9.0.10 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042815 Firefox/3.0.10 CometBird/3.0.10
mozilla 1.9.0.5 Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2009011615 Firefox/3.0.5 CometBird/3.0.5
msie 7.0 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Crazy Browser 3.0.0 Beta2)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment