Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves version detection for iOS #7615

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4313,3 +4313,11 @@
version: "1"
platform: ""
family: Other Smart TV
-
user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 momoWebView/9.6.7 ios/5168(iPhone13,2;iOS 15.6.1;zh_CN;S1;netType/0)
os:
name: iOS
short_name: IOS
version: 15.6.1
platform: ""
family: iOS
16 changes: 8 additions & 8 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,14 @@
name: 'iOS'
version: '$1'

- regex: 'iPhone OS ([0-9]{1})([0-9]{1})([0-9]{1})'
name: 'iOS'
version: '$1.$2.$3'

- regex: '(?:CPU OS|iPh(?:one)?[ _]OS|iPhone.+ OS|PodMN.+iPhone|iOS)[ _/](\d+(?:[_\.]\d+)*)'
name: 'iOS'
version: '$1'

- regex: '(?:iPhone ?OS|iOS(?: Version)?)(?:/|; |,)(\d+[\.\d]+)'
name: 'iOS'
version: '$1'
Expand Down Expand Up @@ -1082,14 +1090,6 @@
name: 'iOS'
version: '$1.$2'

- regex: 'iPhone OS ([0-9]{1})([0-9]{1})([0-9]{1})'
name: 'iOS'
version: '$1.$2.$3'

- regex: '(?:CPU OS|iPh(?:one)?[ _]OS|iPhone.+ OS|PodMN.+iPhone|iOS)[ _/](\d+(?:[_\.]\d+)*)'
name: 'iOS'
version: '$1'

- regex: 'FBMD/iPhone;.*FBSV/ ?(\d+[\.\d]+);'
name: 'iOS'
version: '$1'
Expand Down
Loading