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

Apple watches most commonly use a generic watchOS version. #7723

Merged
merged 1 commit into from
Jun 27, 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
14 changes: 14 additions & 0 deletions Tests/fixtures/wearable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@
model: Watch Series 5 44mm
os_family: iOS
browser_family: Unknown
-
user_agent: atc/1.0 watchOS
os:
name: watchOS
version: ""
platform: ARM
client: null
device:
type: wearable
brand: Apple
model: Watch
os_family: iOS
browser_family: Unknown

-
user_agent: com.apple.appstored/1.0 watchOS/7.0 model/Watch6,1 hwp/t8301 build/18R382 (6; dt:226) AMS/1
os:
Expand Down
2 changes: 1 addition & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ Apple:
- regex: 'Watch7,[24]'
device: 'wearable'
model: 'Watch Series 9 45mm'
- regex: 'Apple Watch'
- regex: '(:?Apple Watch|watchOS)'
device: 'wearable'
model: 'Watch'

Expand Down
2 changes: 1 addition & 1 deletion regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@
##########
# watchOS (https://developer.apple.com/watchos/)
##########
- regex: '(?:Watch1,[12]/|Watch OS,|watchOS[ /])(\d+[\.\d]*)'
- regex: '(?:Watch1,[12]/|Watch OS,|watchOS[ /]?)(\d+[\.\d]*)?'
name: 'watchOS'
version: '$1'
- regex: 'Apple Watch(?!;)'
Expand Down
Loading