From 1cb1bf80ce8c2560775f7d870c48cc5e965dfeee Mon Sep 17 00:00:00 2001 From: geoadaMeta <129231092+geoadaMeta@users.noreply.github.com> Date: Wed, 28 Feb 2024 07:11:31 -0800 Subject: [PATCH] Add Meta Quest 3 (#572) Also removes SamsungBrowser from the Meta Quest tests as this is no longer part of the UA Co-authored-by: geoada --- regexes.yaml | 5 +++++ tests/test_device.yaml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/regexes.yaml b/regexes.yaml index f09bbbee..0a1c0b95 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -3590,6 +3590,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' diff --git a/tests/test_device.yaml b/tests/test_device.yaml index f868d927..6e058b30 100644 --- a/tests/test_device.yaml +++ b/tests/test_device.yaml @@ -155,7 +155,12 @@ test_cases: 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'