mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 08:28:47 +03:00
Split iPad and iPhone into separate OSes for Amplitude compatibility.
This commit is contained in:
parent
ac7f6f613a
commit
66a614a748
@ -725,8 +725,11 @@
|
||||
/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i // FreeBSD/NetBSD/OpenBSD/PC-BSD/DragonFly
|
||||
], [[NAME, 'Linux'], VERSION],[
|
||||
|
||||
/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i // iOS
|
||||
], [[NAME, 'iOS'], [VERSION, /_/g, '.']], [
|
||||
/(iphone)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i // iOS
|
||||
], [[NAME, 'iPhone'], [VERSION, /_/g, '.']], [
|
||||
|
||||
/(ipad)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i // iOS
|
||||
], [[NAME, 'iPad'], [VERSION, /_/g, '.']], [
|
||||
|
||||
/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,
|
||||
/(macintosh|mac(?=_powerpc)\s)/i // Mac OS
|
||||
|
Loading…
x
Reference in New Issue
Block a user