Skip to content

Commit

Permalink
Apple watches most commonly use a generic watchOS version. (#7723)
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreader authored Jun 27, 2024
1 parent 75d88bb commit e988577
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
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

0 comments on commit e988577

Please sign in to comment.