mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
parent
0097b211db
commit
a1d816ae21
@ -462,7 +462,7 @@
|
|||||||
], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [
|
], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [
|
||||||
|
|
||||||
// Apple
|
// Apple
|
||||||
/\((ip(?:hone|od)[\w ]*);/i // iPod/iPhone
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i // iPod/iPhone
|
||||||
], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [
|
], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [
|
||||||
/\((ipad);[-\w\),; ]+apple/i, // iPad
|
/\((ipad);[-\w\),; ]+apple/i, // iPad
|
||||||
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
||||||
@ -789,6 +789,7 @@
|
|||||||
|
|
||||||
// iOS/macOS
|
// iOS/macOS
|
||||||
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
|
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
|
||||||
|
/ios;fbsv\/([\d\.]+)/i,
|
||||||
/cfnetwork\/.+darwin/i
|
/cfnetwork\/.+darwin/i
|
||||||
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
||||||
/(mac os x) ?([\w\. ]*)/i,
|
/(mac os x) ?([\w\. ]*)/i,
|
||||||
|
@ -3136,6 +3136,17 @@
|
|||||||
"desc": "FaceBook Mobile App",
|
"desc": "FaceBook Mobile App",
|
||||||
"ua": "[FBAN/FBIOS;FBAV/283.0.0.44.117;FBBV/238386386;FBDV/iPhone12,1;FBMD/iPhone;FBSN/iOS;FBSV/13.6.1;FBSS/2;FBID/phone;FBLC/en_US;FBOP/5;FBRV/240127608]",
|
"ua": "[FBAN/FBIOS;FBAV/283.0.0.44.117;FBBV/238386386;FBDV/iPhone12,1;FBMD/iPhone;FBSN/iOS;FBSV/13.6.1;FBSS/2;FBID/phone;FBLC/en_US;FBOP/5;FBRV/240127608]",
|
||||||
"expect": {
|
"expect": {
|
||||||
|
"vendor": "Apple",
|
||||||
|
"model": "iPhone12,1",
|
||||||
|
"type": "mobile"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc": "Issue #519",
|
||||||
|
"ua": "ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "Apple",
|
||||||
|
"model": "iPhone",
|
||||||
"type": "mobile"
|
"type": "mobile"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -764,6 +764,15 @@
|
|||||||
"version" : "undefined"
|
"version" : "undefined"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "iOS with FaceBook Mobile App",
|
||||||
|
"ua": "[FBAN/FBIOS;FBAV/283.0.0.44.117;FBBV/238386386;FBDV/iPhone12,1;FBMD/iPhone;FBSN/iOS;FBSV/13.6.1;FBSS/2;FBID/phone;FBLC/en_US;FBOP/5;FBRV/240127608]",
|
||||||
|
"expect":
|
||||||
|
{
|
||||||
|
"name" : "iOS",
|
||||||
|
"version" : "13.6.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "watchOS",
|
"desc" : "watchOS",
|
||||||
"ua" : "server-bag [Watch OS,8.4,19S546,Watch3,4]",
|
"ua" : "server-bag [Watch OS,8.4,19S546,Watch3,4]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user