mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Merge pull request #113 from nikrolls/correct-ms-edge-detection
Microsoft Edge is not IE12
This commit is contained in:
commit
f558e657bb
@ -253,10 +253,12 @@
|
||||
// Chromium/Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron
|
||||
], [NAME, VERSION], [
|
||||
|
||||
/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i, // IE11
|
||||
/(Edge)\/((\d+)?[\w\.]+)/i // IE12
|
||||
/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i // IE11
|
||||
], [[NAME, 'IE'], VERSION], [
|
||||
|
||||
/(edge)\/((\d+)?[\w\.]+)/i // Microsoft Edge
|
||||
], [NAME, VERSION], [
|
||||
|
||||
/(yabrowser)\/([\w\.]+)/i // Yandex
|
||||
], [[NAME, 'Yandex'], VERSION], [
|
||||
|
||||
|
@ -690,11 +690,11 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"desc" : "Windows 10 EI",
|
||||
"desc" : "Microsoft Edge",
|
||||
"ua" : "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0",
|
||||
"expect" :
|
||||
{
|
||||
"name" : "IE",
|
||||
"name" : "Edge",
|
||||
"version" : "12.0",
|
||||
"major" : "12"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user