mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Add new device: Fairphone
This commit is contained in:
parent
c937400e8e
commit
9d431cfddd
@ -62,8 +62,8 @@ console, mobile, tablet, smarttv, wearable, embedded
|
|||||||
|
|
||||||
# Possible 'device.vendor':
|
# Possible 'device.vendor':
|
||||||
Acer, Alcatel, Amazon, Apple, Archos, ASUS, AT&T, BenQ, BlackBerry, Dell,
|
Acer, Alcatel, Amazon, Apple, Archos, ASUS, AT&T, BenQ, BlackBerry, Dell,
|
||||||
Essential, GeeksPhone, Google, HP, HTC, Huawei, Jolla, Lenovo, LG, Meizu,
|
Essential, Fairphone, GeeksPhone, Google, HP, HTC, Huawei, Jolla, Lenovo, LG,
|
||||||
Microsoft, Motorola, Nexian, Nintendo, Nokia, Nvidia, OnePlus, OPPO, Ouya,
|
Meizu, Microsoft, Motorola, Nexian, Nintendo, Nokia, Nvidia, OnePlus, OPPO, Ouya,
|
||||||
Palm, Panasonic, Pebble, Polytron, Realme, RIM, Samsung, Sharp, Siemens,
|
Palm, Panasonic, Pebble, Polytron, Realme, RIM, Samsung, Sharp, Siemens,
|
||||||
Sony[Ericsson], Sprint, Vivo, Vodafone, Xbox, Xiaomi, Zebra, ZTE, ...
|
Sony[Ericsson], Sprint, Vivo, Vodafone, Xbox, Xiaomi, Zebra, ZTE, ...
|
||||||
|
|
||||||
|
@ -538,6 +538,8 @@
|
|||||||
|
|
||||||
/\s(surface\sduo)\s/i // Surface Duo
|
/\s(surface\sduo)\s/i // Surface Duo
|
||||||
], [MODEL, [VENDOR, 'Microsoft'], [TYPE, TABLET]], [
|
], [MODEL, [VENDOR, 'Microsoft'], [TYPE, TABLET]], [
|
||||||
|
/droid\s[\d\.]+;\s(fp\du?)\sbuild/i
|
||||||
|
], [MODEL, [VENDOR, 'Fairphone'], [TYPE, MOBILE]], [
|
||||||
/\s(u304aa)\sbuild/i // AT&T
|
/\s(u304aa)\sbuild/i // AT&T
|
||||||
], [MODEL, [VENDOR, 'AT&T'], [TYPE, MOBILE]], [
|
], [MODEL, [VENDOR, 'AT&T'], [TYPE, MOBILE]], [
|
||||||
/sie-(\w*)/i // Siemens
|
/sie-(\w*)/i // Siemens
|
||||||
|
@ -160,6 +160,15 @@
|
|||||||
"type": "mobile"
|
"type": "mobile"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "Fairphone 1U",
|
||||||
|
"ua": "Mozilla/5.0 (Linux; U; Android 4.2.2; FP1U Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "Fairphone",
|
||||||
|
"model": "FP1U",
|
||||||
|
"type": "mobile"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc": "HTC Desire 820",
|
"desc": "HTC Desire 820",
|
||||||
"ua": "Mozilla/5.0 (Linux; Android 6.0.1; HTC Desire 820 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36",
|
"ua": "Mozilla/5.0 (Linux; Android 6.0.1; HTC Desire 820 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user