Fix #643 - Improve iOS detection (cherry picked from commit 29fb85658a)

This commit is contained in:
Faisal Salman
2023-04-15 01:08:46 +07:00
parent d810feb844
commit 5af24a6cf7
2 changed files with 10 additions and 1 deletions

View File

@@ -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,