From a0666acf892b2cb320249cd98af3ad339b8f8c18 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 4 Sep 2014 18:50:34 +0200 Subject: [PATCH] parse_useragent: add Mac OS X 10.10 Yosemite --- ox/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox/text.py b/ox/text.py index 5ed551e..9158de9 100644 --- a/ox/text.py +++ b/ox/text.py @@ -134,7 +134,7 @@ UA_REGEXPS = { '(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)', '(Mac_PowerPC)', '(Mac_PPC)', @@ -177,6 +177,7 @@ UA_VERSIONS = { '10.7': '10.7 (Lion)', '10.8': '10.8 (Mountain Lion)', '10.9': '10.9 (Mavericks)', + '10.10': '10.10 (Yosemite)', '40': 'Series 40', '60': 'Series 60', 'NT 3.1': 'NT 3.1 (3.1)',