Skip to content

Commit cde861e

Browse files
committed
fix firefox mapping and add several additional browser mappings
1 parent 7912c6e commit cde861e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ua2os.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,25 @@
3838
('i(pod|pad|phone).*(Safari|AppleWebKit)', 'Safari - mobile'),
3939
('Safari/', 'Safari'),
4040
('iTunes', 'iTunes'),
41-
('Firefox/(\d)', 'Firefox %s'),
41+
('Firefox/(\d+)', 'Firefox %s'),
4242
('MSIE 5.00', 'Internet Explorer 5.0'),
4343
('MSIE', 'Internet Explorer - Other'),
4444
('AppleWebKit', 'Safari'),
4545
('Google Update', 'Google Update'),
4646
('Opera', 'Opera'),
4747
('urlgrabber/.* yum', 'yum'),
4848
('BlackBerry', 'Blackberry'),
49+
('Googlebot', 'Googlebot'),
50+
('Baiduspider', 'Baidubot'),
51+
('NING/\d', 'Ning'),
52+
('msnbot/\d', 'msnbot'),
53+
('gsa-crawler', 'Google Search Appliance'),
54+
('Ezooms/\d', 'Ezooms'),
55+
('bingbot', 'bingbot'),
56+
('YandexBot', 'yandexbot'),
57+
('Genieo', 'genieo'),
58+
('Apple-PubSub', 'Apple PubSub'),
59+
('Java/\d', 'Java'),
4960
)
5061

5162
arch_mapping = (

0 commit comments

Comments
 (0)