update parseUserAgent

This commit is contained in:
rolux 2014-09-29 00:16:25 +02:00
parent 67521edc8d
commit e9ea876f88

View file

@ -325,7 +325,7 @@ Ox.parseUserAgent = function(userAgent) {
/(Linux).+(CentOS|CrOS|Debian|Fedora|Gentoo|Mandriva|MeeGo|Mint|Red Hat|SUSE|Ubuntu|webOS)/, /(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)/, /(CentOS|CrOS|Debian|Fedora|Gentoo|Mandriva|MeeGo|Mint|Red Hat|SUSE|Ubuntu|webOS).+(Linux)/,
/(Linux)/, /(Linux)/,
/(Mac OS X) (10.\d)/, /(Mac OS X) (10.\d+)/,
/(Mac OS X)/, /(Mac OS X)/,
/(Macintosh)/, /(Macintosh)/,
/(SymbianOS)\/(\d+)/, /(SymbianOS)\/(\d+)/,
@ -352,6 +352,8 @@ Ox.parseUserAgent = function(userAgent) {
'10.6': '10.6 (Snow Leopard)', '10.6': '10.6 (Snow Leopard)',
'10.7': '10.7 (Lion)', '10.7': '10.7 (Lion)',
'10.8': '10.8 (Mountain Lion)', '10.8': '10.8 (Mountain Lion)',
'10.9': '10.9 (Mavericks)',
'10.10': '10.10 (Yosemite)',
'CrOS': 'Chrome OS', 'CrOS': 'Chrome OS',
'NT 4.0': 'NT 4.0 (Windows NT)', 'NT 4.0': 'NT 4.0 (Windows NT)',
'NT 4.1': 'NT 4.1 (Windows 98)', 'NT 4.1': 'NT 4.1 (Windows 98)',