mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Add new device: Apple HomePod
This commit is contained in:
parent
84b41f5be7
commit
5d603dacd7
@ -840,6 +840,8 @@
|
|||||||
], [VENDOR, [TYPE, EMBEDDED]], [
|
], [VENDOR, [TYPE, EMBEDDED]], [
|
||||||
/(aeobc)\b/i // Echo Dot
|
/(aeobc)\b/i // Echo Dot
|
||||||
], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [
|
], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [
|
||||||
|
/(homepod).+mac os/i // Apple HomePod
|
||||||
|
], [MODEL, [VENDOR, APPLE], [TYPE, EMBEDDED]], [
|
||||||
/windows iot/i
|
/windows iot/i
|
||||||
], [[TYPE, EMBEDDED]], [
|
], [[TYPE, EMBEDDED]], [
|
||||||
|
|
||||||
@ -898,7 +900,7 @@
|
|||||||
], [[VERSION, strMapper, windowsVersionMap], [NAME, WINDOWS]], [
|
], [[VERSION, strMapper, windowsVersionMap], [NAME, WINDOWS]], [
|
||||||
|
|
||||||
// iOS/macOS
|
// iOS/macOS
|
||||||
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
|
/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
|
||||||
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
|
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
|
||||||
/cfnetwork\/.+darwin/i
|
/cfnetwork\/.+darwin/i
|
||||||
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
||||||
|
@ -116,6 +116,15 @@
|
|||||||
"type": "mobile"
|
"type": "mobile"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "Apple HomePod",
|
||||||
|
"ua": "AppleCoreMedia/1.0.0.15D61 (HomePod; U; CPU OS 11_2_5 like Mac OS X; en_us)",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "Apple",
|
||||||
|
"model": "HomePod",
|
||||||
|
"type": "embedded"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc": "Issue #519",
|
"desc": "Issue #519",
|
||||||
"ua": "ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION",
|
"ua": "ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION",
|
||||||
|
@ -52,5 +52,14 @@
|
|||||||
"name" : "iOS",
|
"name" : "iOS",
|
||||||
"version" : "7.0.2"
|
"version" : "7.0.2"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc": "Apple HomePod",
|
||||||
|
"ua": "AppleCoreMedia/1.0.0.15D61 (HomePod; U; CPU OS 11_2_5 like Mac OS X; en_us)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "iOS",
|
||||||
|
"version" : "11.2.5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user