diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..eab0a2f9 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -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' diff --git a/tests/test_device.yaml b/tests/test_device.yaml index 990c2208..893a1b58 100644 --- a/tests/test_device.yaml +++ b/tests/test_device.yaml @@ -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'