mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-29 17:04:26 +03:00
Fix detection of Firefox on iOS.
Firefox on iOS' ua string is also matched by the "Safari < 3.0" regular expression, unfortunately. Reorder the regular expressions so that the one for FxiOS matches first.
This commit is contained in:
@@ -728,5 +728,15 @@
|
||||
"version" : "43.8",
|
||||
"major" : "43"
|
||||
}
|
||||
},
|
||||
{
|
||||
"desc" : "Firefox iOS",
|
||||
"ua" : "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) FxiOS/1.1 Mobile/13B143 Safari/601.1.46",
|
||||
"expect" :
|
||||
{
|
||||
"name" : "Firefox",
|
||||
"version" : "1.1",
|
||||
"major" : "1"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user