mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Add Opera Tablet & capture AppleWebKit as just WebKit
This commit is contained in:
parent
29bb0797a6
commit
816b5d22b4
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "UA-Parser.JS",
|
"title": "UA-Parser.JS",
|
||||||
"name": "ua-parser-js",
|
"name": "ua-parser-js",
|
||||||
"version": "0.4.15",
|
"version": "0.4.16",
|
||||||
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
|
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
|
||||||
"description": "Lightweight JavaScript-based user-agent string parser",
|
"description": "Lightweight JavaScript-based user-agent string parser",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// UA-Parser.JS v0.4.15
|
// UA-Parser.JS v0.4.16
|
||||||
// Lightweight JavaScript-based User-Agent string parser
|
// Lightweight JavaScript-based User-Agent string parser
|
||||||
// https://github.com/faisalman/ua-parser-js
|
// https://github.com/faisalman/ua-parser-js
|
||||||
//
|
//
|
||||||
@ -125,7 +125,7 @@
|
|||||||
|
|
||||||
// Presto based
|
// Presto based
|
||||||
/(opera\smini)\/((\d+)?[\w\.-]+)/i, // Opera Mini
|
/(opera\smini)\/((\d+)?[\w\.-]+)/i, // Opera Mini
|
||||||
/(opera\smobi).+version\/((\d+)?[\w\.-]+)/i, // Opera Mobile
|
/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i, // Opera Mobi/Tablet
|
||||||
/(opera).+version\/((\d+)?[\w\.]+)/i, // Opera > 9.80
|
/(opera).+version\/((\d+)?[\w\.]+)/i, // Opera > 9.80
|
||||||
/(opera)[\/\s]+((\d+)?[\w\.]+)/i, // Opera < 9.80
|
/(opera)[\/\s]+((\d+)?[\w\.]+)/i, // Opera < 9.80
|
||||||
|
|
||||||
@ -258,7 +258,7 @@
|
|||||||
engine : [[
|
engine : [[
|
||||||
|
|
||||||
/(presto)\/([\w\.]+)/i, // Presto
|
/(presto)\/([\w\.]+)/i, // Presto
|
||||||
/([aple]*webkit|trident|netfront)\/([\w\.]+)/i, // Webkit/Trident/NetFront
|
/(webkit|trident|netfront)\/([\w\.]+)/i, // WebKit/Trident/NetFront
|
||||||
/(khtml)\/([\w\.]+)/i, // KHTML
|
/(khtml)\/([\w\.]+)/i, // KHTML
|
||||||
/(tasman)\s([\w\.]+)/i // Tasman
|
/(tasman)\s([\w\.]+)/i // Tasman
|
||||||
], ['name', 'version'], [
|
], ['name', 'version'], [
|
||||||
|
4
ua-parser.min.js
vendored
4
ua-parser.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user