Merge pull request #2108 from nextcloud/properly-parse-ie-useragent

Properly parse IE 11 user agent
This commit is contained in:
Lukas Reschke 2016-11-18 13:39:47 +01:00 committed by GitHub
commit c241539a21
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@
var matches = viewData.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/);
var userAgentMap = {
ie: /(?:MSIE|Trident) (\d+)/,
ie: /(?:MSIE|Trident|Trident\/7.0; rv)[ :](\d+)/,
// Microsoft Edge User Agent from https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
edge: /^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/,
// Firefox User Agent from https://developer.mozilla.org/en-US/docs/Web/HTTP/Gecko_user_agent_string_reference