Skip to content

Commit

Permalink
Add Meta Quest 3
Browse files Browse the repository at this point in the history
Also removes SamsungBrowser from the Meta Quest tests as this
is no longer part of the UA
  • Loading branch information
geoada committed Feb 12, 2024
1 parent d668d6c commit ffdf236
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,11 @@ device_parsers:
# Meta
# @ref: https://www.meta.com
#########
- regex: 'Quest 3'
device_replacement: 'Quest'
brand_replacement: 'Meta'
model_replacement: 'Quest 3'

- regex: 'Quest 2'
device_replacement: 'Quest'
brand_replacement: 'Meta'
Expand Down
11 changes: 8 additions & 3 deletions tests/test_device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,22 @@ test_cases:
brand: 'Apple'
model: 'iPod'

- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 SamsungBrowser/4.0 Chrome/110.0.5481.192 VR Safari/537.36'
- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 Chrome/110.0.5481.192 VR Safari/537.36'
family: 'Quest'
brand: 'Meta'
model: 'Quest'

- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest 2) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 SamsungBrowser/4.0 Chrome/110.0.5481.192 VR Safari/537.36'
- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest 2) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 Chrome/110.0.5481.192 VR Safari/537.36'
family: 'Quest'
brand: 'Meta'
model: 'Quest 2'

- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest Pro) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 SamsungBrowser/4.0 Chrome/110.0.5481.192 VR Safari/537.36'
- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest 3) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 Chrome/110.0.5481.192 VR Safari/537.36'
family: 'Quest'
brand: 'Meta'
model: 'Quest 3'

- user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; Quest Pro) AppleWebKit/537.36 (KHTML, like Gecko) OculusBrowser/26.2.0.0.10 Chrome/110.0.5481.192 VR Safari/537.36'
family: 'Quest'
brand: 'Meta'
model: 'Quest Pro'
Expand Down

0 comments on commit ffdf236

Please sign in to comment.