Skip to content

Commit

Permalink
Improves version detection for iOS and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jan 1, 2025
1 parent 02554f3 commit ba778d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5869,3 +5869,11 @@
version: "5"
platform: ""
family: Android
-
user_agent: ArcMobile2/56955.2 CFNetwork/3826.400.101 Darwin/24.3.0
os:
name: iOS
short_name: IOS
version: "18.3"
platform: ""
family: iOS
4 changes: 4 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,8 @@
- regex: '^(?!com\.apple\.Safari\.SearchHelper|Safari).*(?:CFNetwork|Mana)/.+ Darwin/(\d+[.\d]+)(?!.*(?:x86_64|i386|PowerMac|Power%20Macintosh))'
name: 'iOS'
versions:
- regex: 'Darwin/24\.3\.0'
version: '18.3'
- regex: 'Darwin/24\.2\.0'
version: '18.2'
- regex: 'Darwin/24\.1\.0'
Expand Down Expand Up @@ -1591,6 +1593,8 @@
- regex: '(?:CFNetwork|Mana|StudioDisplay)/.+Darwin(?:/|; )(?:[\d.]+).+(?:x86_64|i386|Power%20Macintosh)|(?:x86_64-apple-)?darwin(?:[\d.]+)|C?Python.*Darwin|PowerMac|com\.apple\.Safari\.SearchHelper|^Safari'
name: 'Mac'
versions:
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?24\.3\.0'
version: '15.3'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?24\.2\.0'
version: '15.2'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?24\.1\.0'
Expand Down

0 comments on commit ba778d0

Please sign in to comment.