Skip to content

Commit

Permalink
Merge pull request darcyclarke#19 from seegno/ie11-detection
Browse files Browse the repository at this point in the history
Added IE11 detection
  • Loading branch information
darcyclarke committed Mar 18, 2014
2 parents 6f43a8c + f5dd23e commit af10c8d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Detect.js
=========

@version 2.2.0
@version 2.2.1

**Note:** Detect.js is a JavaScript library to detect platforms, versions, manufacturers and types based on the `navigator.userAgent` string. This code is based on, and modified from, the original work of Tobie Langel's UA-Parser: https://github.com/tobie/ua-parser. UA-Parser is subsequently a port of [BrowserScope][1]'s [user agent string parser][2].

Expand Down
4 changes: 4 additions & 0 deletions build/regexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@
"family_replacement": "Teleca Browser",
"other": true
},
{
"regex": "Trident(.*)rv.(\\d+)\\.(\\d+)",
"family_replacement": "IE"
},
{
"regex": "(MSIE) (\\d+)\\.(\\d+)",
"family_replacement": "IE"
Expand Down
7 changes: 5 additions & 2 deletions detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* https://github.com/darcyclarke/Detect.js
* Dual licensed under the MIT and GPL licenses.
*
* @version 2.2.0
* @version 2.2.1
* @author Darcy Clarke
* @url http://darcyclarke.me
* @createdat Mon Dec 02 2013 14:47:23 GMT+0100 (W. Europe Standard Time)
* @createdat Thu Feb 13 2014 11:36:42 GMT+0000 (WET)
*
* Based on UA-Parser (https://github.com/tobie/ua-parser) by Tobie Langel
*
Expand Down Expand Up @@ -477,6 +477,9 @@
regex: "(Teleca)",
family_replacement: "Teleca Browser",
other: true
}, {
regex: "Trident(.*)rv.(\\d+)\\.(\\d+)",
family_replacement: "IE"
}, {
regex: "(MSIE) (\\d+)\\.(\\d+)",
family_replacement: "IE"
Expand Down
2 changes: 1 addition & 1 deletion detect.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Detect.js",
"version": "2.2.0",
"version": "2.2.1",
"author": "Darcy Clarke",
"license": "Dual licensed under the MIT and GPL licenses.",
"description": "JS Library to detect browser, os and device based on the UserAgent String",
Expand Down
4 changes: 4 additions & 0 deletions regexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ var regexes = {
"family_replacement": "Teleca Browser",
"other": true
},
{
"regex": "Trident(.*)rv.(\\d+)\\.(\\d+)",
"family_replacement": "IE"
},
{
"regex": "(MSIE) (\\d+)\\.(\\d+)",
"family_replacement": "IE"
Expand Down

0 comments on commit af10c8d

Please sign in to comment.