Add Opera Tablet & capture AppleWebKit as just WebKit

This commit is contained in:
Faisal Salman 2012-12-06 20:23:40 +07:00
parent 29bb0797a6
commit 816b5d22b4
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{
"title": "UA-Parser.JS",
"name": "ua-parser-js",
"version": "0.4.15",
"version": "0.4.16",
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
"description": "Lightweight JavaScript-based user-agent string parser",
"keywords": [

View File

@ -1,4 +1,4 @@
// UA-Parser.JS v0.4.15
// UA-Parser.JS v0.4.16
// Lightweight JavaScript-based User-Agent string parser
// https://github.com/faisalman/ua-parser-js
//
@ -125,7 +125,7 @@
// Presto based
/(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)[\/\s]+((\d+)?[\w\.]+)/i, // Opera < 9.80
@ -258,7 +258,7 @@
engine : [[
/(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
/(tasman)\s([\w\.]+)/i // Tasman
], ['name', 'version'], [

4
ua-parser.min.js vendored

File diff suppressed because one or more lines are too long