Skip to content

Commit

Permalink
Improves version detection for iOS and macOS (#7878)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu authored Oct 28, 2024
1 parent 81cf44a commit 150ac62
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5254,3 +5254,19 @@
version: "10"
platform: x64
family: Windows
-
user_agent: Safari/20620.1.11 CFNetwork/1568.300.61 Darwin/24.2.0
os:
name: Mac
short_name: MAC
version: "15.2"
platform: ""
family: Mac
-
user_agent: Podcasts/4024.310.31.1 CFNetwork/1568.300.61 Darwin/24.2.0
os:
name: iOS
short_name: IOS
version: "18.2"
platform: ""
family: iOS
4 changes: 4 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,8 @@
- regex: '^(?!com\.apple\.Safari\.SearchHelper|Safari).*(?:CFNetwork|Mana)/.+ Darwin/(\d+[\.\d]+)(?!.*(?:x86_64|i386|PowerMac|Power%20Macintosh))'
name: 'iOS'
versions:
- regex: 'Darwin/24\.2\.0'
version: '18.2'
- regex: 'Darwin/24\.1\.0'
version: '18.1'
- regex: 'Darwin/24\.0\.0'
Expand Down Expand Up @@ -1554,6 +1556,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\.2\.0'
version: '15.2'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?24\.1\.0'
version: '15.1'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?24\.0\.0'
Expand Down

0 comments on commit 150ac62

Please # to comment.