mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Distinguish Windows RT from Windows 8
This commit is contained in:
parent
9a6479193a
commit
d35fb44066
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "UA-Parser.JS",
|
"title": "UA-Parser.JS",
|
||||||
"name": "ua-parser-js",
|
"name": "ua-parser-js",
|
||||||
"version": "0.4.10",
|
"version": "0.4.11",
|
||||||
"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.10
|
// UA-Parser.JS v0.4.11
|
||||||
// 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
|
||||||
//
|
//
|
||||||
@ -112,7 +112,8 @@
|
|||||||
'XP' : ['NT 5.1', 'NT 5.2'],
|
'XP' : ['NT 5.1', 'NT 5.2'],
|
||||||
'Vista' : 'NT 6.0',
|
'Vista' : 'NT 6.0',
|
||||||
'7' : 'NT 6.1',
|
'7' : 'NT 6.1',
|
||||||
'8' : 'NT 6.2'
|
'8' : 'NT 6.2',
|
||||||
|
'RT' : 'ARM'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -260,7 +261,8 @@
|
|||||||
os : [[
|
os : [[
|
||||||
|
|
||||||
// Windows based
|
// Windows based
|
||||||
/(windows\sphone\sos|windows\s?[mobile]*)[\s\/]?([ntce\d\.\s]+\w)/i // Windows
|
/(windows)\snt\s6\.2;\s(arm)/i, // Windows RT
|
||||||
|
/(windows\sphone\sos|windows\s?[mobile]*)[\s\/]?([ntce\d\.\s]+\w)/i
|
||||||
], ['name', ['version', mapper.string, maps.os.windows.version]], [
|
], ['name', ['version', mapper.string, maps.os.windows.version]], [
|
||||||
/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i
|
/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i
|
||||||
], [['name', 'Windows'], ['version', mapper.string, maps.os.windows.version]], [
|
], [['name', 'Windows'], ['version', mapper.string, maps.os.windows.version]], [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user