From e9ea876f88e79abac90f191f1613b8dc94222df6 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 29 Sep 2014 00:16:25 +0200 Subject: [PATCH] update parseUserAgent --- source/Ox/js/String.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/String.js b/source/Ox/js/String.js index 7dd1e004..35306b3c 100644 --- a/source/Ox/js/String.js +++ b/source/Ox/js/String.js @@ -325,7 +325,7 @@ Ox.parseUserAgent = function(userAgent) { /(Linux).+(CentOS|CrOS|Debian|Fedora|Gentoo|Mandriva|MeeGo|Mint|Red Hat|SUSE|Ubuntu|webOS)/, /(CentOS|CrOS|Debian|Fedora|Gentoo|Mandriva|MeeGo|Mint|Red Hat|SUSE|Ubuntu|webOS).+(Linux)/, /(Linux)/, - /(Mac OS X) (10.\d)/, + /(Mac OS X) (10.\d+)/, /(Mac OS X)/, /(Macintosh)/, /(SymbianOS)\/(\d+)/, @@ -352,6 +352,8 @@ Ox.parseUserAgent = function(userAgent) { '10.6': '10.6 (Snow Leopard)', '10.7': '10.7 (Lion)', '10.8': '10.8 (Mountain Lion)', + '10.9': '10.9 (Mavericks)', + '10.10': '10.10 (Yosemite)', 'CrOS': 'Chrome OS', 'NT 4.0': 'NT 4.0 (Windows NT)', 'NT 4.1': 'NT 4.1 (Windows 98)',