mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-17 15:35:27 +03:00
Fix #643 - Improve iOS detection (cherry picked from commit 29fb85658a)
This commit is contained in:
@@ -721,7 +721,7 @@
|
||||
|
||||
// iOS/macOS
|
||||
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
|
||||
/ios;fbsv\/([\d\.]+)/i,
|
||||
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
|
||||
/cfnetwork\/.+darwin/i
|
||||
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
||||
/(mac os x) ?([\w\. ]*)/i,
|
||||
|
||||
Reference in New Issue
Block a user