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 Oct 14, 2023
1 parent 66438da commit 0fc2239
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 @@ -3918,3 +3918,19 @@
version: 5.4.0
platform: x64
family: Android
-
user_agent: Aloha/1 CFNetwork/1483 Darwin/23.1.0
os:
name: iOS
short_name: IOS
version: "17.1"
platform:
family: iOS
-
user_agent: Safari/19616.8.27.211.1 CFNetwork/1483 Darwin/23.1.0
os:
name: Mac
short_name: MAC
version: "14.1"
platform:
family: Mac
4 changes: 4 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,8 @@
- regex: '^(?!com.apple.Safari.SearchHelper|Safari).*CFNetwork/.+ Darwin/(\d+[\.\d]+)(?!.*(?:x86_64|i386|PowerMac|Power%20Macintosh))'
name: 'iOS'
versions:
- regex: 'Darwin/23.1.0'
version: '17.1'
- regex: 'Darwin/23.0.0'
version: '17.0'
- regex: 'Darwin/22.6.0'
Expand Down Expand Up @@ -1030,6 +1032,8 @@
- regex: '(?:CFNetwork|StudioDisplay)/.+Darwin(?:/|; )(?:[\d\.]+).+(?:x86_64|i386|Power%20Macintosh)|(?:x86_64-apple-)?darwin(?:[\d\.]+)|PowerMac|com.apple.Safari.SearchHelper|^Safari'
name: 'Mac'
versions:
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?23.1.0'
version: '14.1'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?23.0.0'
version: '14.0'
- regex: '(?:x86_64-apple-)?Darwin(?:/|; )?22.6.0'
Expand Down

0 comments on commit 0fc2239

Please sign in to comment.