mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Added Generic Android detection
This commit is contained in:
parent
8e9c400ec5
commit
fbe8a0e3a6
@ -659,9 +659,13 @@
|
|||||||
|
|
||||||
/\s(tablet)[;\/]/i, // Unidentifiable Tablet
|
/\s(tablet)[;\/]/i, // Unidentifiable Tablet
|
||||||
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile
|
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile
|
||||||
], [[TYPE, util.lowerize], VENDOR, MODEL]
|
], [[TYPE, util.lowerize], VENDOR, MODEL], [
|
||||||
|
|
||||||
/*//////////////////////////
|
/(android.+)[;\/].+build/i // Generic Android Device
|
||||||
|
], [MODEL, [VENDOR, 'Generic']]
|
||||||
|
|
||||||
|
|
||||||
|
/*//////////////////////////
|
||||||
// TODO: move to string map
|
// TODO: move to string map
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
|
@ -524,6 +524,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
||||||
|
{
|
||||||
|
"desc" : "Generic Android Device",
|
||||||
|
"ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; i980 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"vendor" : "Generic",
|
||||||
|
"model" : "Android 6.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
{
|
{
|
||||||
"desc" : "LG VK Series Tablet",
|
"desc" : "LG VK Series Tablet",
|
||||||
"ua" : "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36",
|
"ua" : "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user