mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Fix #272 OnePlus
This commit is contained in:
parent
b367a3f741
commit
ac7f87f199
@ -661,7 +661,8 @@
|
|||||||
/android.+;\s(m[1-5]\snote)\sbuild/i // Meizu Tablet
|
/android.+;\s(m[1-5]\snote)\sbuild/i // Meizu Tablet
|
||||||
], [MODEL, [VENDOR, 'Meizu'], [TYPE, TABLET]], [
|
], [MODEL, [VENDOR, 'Meizu'], [TYPE, TABLET]], [
|
||||||
|
|
||||||
/android.+a000(1)\s+build/i // OnePlus
|
/android.+a000(1)\s+build/i, // OnePlus
|
||||||
|
/android.+oneplus\s(a\d{4})\s+build/i
|
||||||
], [MODEL, [VENDOR, 'OnePlus'], [TYPE, MOBILE]], [
|
], [MODEL, [VENDOR, 'OnePlus'], [TYPE, MOBILE]], [
|
||||||
|
|
||||||
/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i // RCA Tablets
|
/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i // RCA Tablets
|
||||||
|
@ -196,6 +196,15 @@
|
|||||||
"type": "mobile"
|
"type": "mobile"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "OnePlus 3",
|
||||||
|
"ua": "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3000 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "OnePlus",
|
||||||
|
"model": "A3000",
|
||||||
|
"type": "mobile"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc": "OPPO R7s",
|
"desc": "OPPO R7s",
|
||||||
"ua": "Mozilla/5.0 (Linux; U; Android 4.4.4; zh-cn; OPPO R7s Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.1 Mobile Safari/537.36",
|
"ua": "Mozilla/5.0 (Linux; U; Android 4.4.4; zh-cn; OPPO R7s Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.1 Mobile Safari/537.36",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user