mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Fix #77: Standardize OS name for Mac OS
This commit is contained in:
parent
9e81f03558
commit
0a2b05c6fd
@ -631,14 +631,15 @@
|
||||
/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i // iOS
|
||||
], [[NAME, 'iOS'], [VERSION, /_/g, '.']], [
|
||||
|
||||
/(macintosh|mac(?=_powerpc)/i,
|
||||
/(mac\sos\sx)\s?([\w\s\.]+\w)*/i // Mac OS
|
||||
], [NAME, [VERSION, /_/g, '.']], [
|
||||
], [[NAME, 'Mac OS'], [VERSION, /_/g, '.']], [
|
||||
|
||||
// Other
|
||||
/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i, // Solaris
|
||||
/(haiku)\s(\w+)/i, // Haiku
|
||||
/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i, // AIX
|
||||
/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,
|
||||
/plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,
|
||||
// Plan9/Minix/BeOS/OS2/AmigaOS/MorphOS/RISCOS/OpenVMS
|
||||
/(unix)\s?([\w\.]+)*/i // UNIX
|
||||
], [NAME, VERSION]
|
||||
|
Loading…
x
Reference in New Issue
Block a user