detect IE11, part of ticket #1917

This commit is contained in:
j 2013-10-24 00:24:13 +02:00
parent e3ee66fe08
commit 38853b1f4b

View file

@ -61,7 +61,8 @@ UA_NAMES = {
'konqueror': 'Konqueror', 'konqueror': 'Konqueror',
'Mozilla': 'Netscape', 'Mozilla': 'Netscape',
'MSIE': 'Internet Explorer', 'MSIE': 'Internet Explorer',
'NokiaBrowser': 'Nokia Browser' 'NokiaBrowser': 'Nokia Browser',
'Trident': 'Internet Explorer'
}, },
'robot': {}, 'robot': {},
'system': { 'system': {
@ -106,6 +107,7 @@ UA_REGEXPS = {
'Version\/(\d+).+(Safari)', 'Version\/(\d+).+(Safari)',
'(WebKit)\/(\d+)', '(WebKit)\/(\d+)',
'(MSIE) (\d\d?(?!\d))', # last, since Opera used to mask as MSIE '(MSIE) (\d\d?(?!\d))', # last, since Opera used to mask as MSIE
'(Trident)\/.*?rv:(\d+)',
'(Gecko)', '(Gecko)',
'(Mozilla)\/(3|4)' '(Mozilla)\/(3|4)'
], ],