From 93f3d97c921be09224e38671770c0d6ab0ecc2fe Mon Sep 17 00:00:00 2001 From: Marty Lamoureux Date: Wed, 26 Sep 2018 15:48:04 +0200 Subject: [PATCH] Use modern wording for Mac and macOS --- src/Agent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Agent.php b/src/Agent.php index b1af275..df009ef 100644 --- a/src/Agent.php +++ b/src/Agent.php @@ -14,7 +14,7 @@ class Agent extends Mobile_Detect * @var array */ protected static $additionalDevices = [ - 'Macintosh' => 'Macintosh', + 'Mac' => 'Macintosh', ]; /** @@ -25,7 +25,7 @@ class Agent extends Mobile_Detect protected static $additionalOperatingSystems = [ 'Windows' => 'Windows', 'Windows NT' => 'Windows NT', - 'OS X' => 'Mac OS X', + 'macOS' => 'Mac OS X', 'Debian' => 'Debian', 'Ubuntu' => 'Ubuntu', 'Macintosh' => 'PPC', @@ -63,7 +63,7 @@ class Agent extends Mobile_Detect // Operating systems 'Windows' => 'Windows NT [VER]', 'Windows NT' => 'Windows NT [VER]', - 'OS X' => 'OS X [VER]', + 'macOS' => 'OS X [VER]', 'BlackBerryOS' => ['BlackBerry[\w]+/[VER]', 'BlackBerry.*Version/[VER]', 'Version/[VER]'], 'AndroidOS' => 'Android [VER]', 'ChromeOS' => 'CrOS x86_64 [VER]',