This commit is contained in:
Faisal Salman 2013-02-27 21:44:43 +07:00
parent 3eb1c1c352
commit 40ac5c5bc3
5 changed files with 15 additions and 6 deletions

View File

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

View File

@ -797,6 +797,15 @@ var os = [
version : '7.0'
}
},
{
desc : 'Windows Phone 8',
ua : 'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; HTC; Windows Phone 8X by HTC)',
expect :
{
name : 'Windows Phone',
version : '8.0'
}
},
{
desc : 'BlackBerry',
ua : 'BlackBerry9300/5.0.0.912 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/378',

View File

@ -1,7 +1,7 @@
{
"title": "UA-Parser.JS",
"name": "ua-parser-js",
"version": "0.5.13",
"version": "0.5.14",
"description": "Lightweight JavaScript-based user-agent string parser",
"keywords": [
"user-agent",

View File

@ -1,4 +1,4 @@
// UA-Parser.JS v0.5.13
// UA-Parser.JS v0.5.14
// Lightweight JavaScript-based User-Agent string parser
// https://github.com/faisalman/ua-parser-js
//
@ -312,7 +312,7 @@
// Windows based
/(windows)\snt\s6\.2;\s(arm)/i, // Windows RT
/(windows\sphone\sos|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i
/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i
], [NAME, [VERSION, mapper.string, maps.os.windows.version]], [
/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i
], [[NAME, 'Windows'], [VERSION, mapper.string, maps.os.windows.version]], [

4
ua-parser.min.js vendored

File diff suppressed because one or more lines are too long