diff --git a/regexes.yaml b/regexes.yaml index 7f521b68..83b1d938 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -495,6 +495,12 @@ user_agent_parsers: - regex: '(Ecosia) android@(\d+)(?:\.(\d+)|)(?:\.(\d+)|)(?:\.(\d+)|)' family_replacement: 'Ecosia Android' + # VivoBrowser + - regex: '(VivoBrowser)\/(\d+)\.(\d+)\.(\d+)\.(\d+)' + + # HiBrowser + - regex: '(HiBrowser)\/v(\d+)\.(\d+)\.(\d+)\.(\d+)' + # Chrome Mobile - regex: 'Version/.{1,300}(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+)' family_replacement: 'Chrome Mobile WebView' diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 8b1f6bc8..38b2a367 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -301,6 +301,18 @@ test_cases: minor: '0' patch: '660' + - user_agent_string: 'Mozilla/5.0 (Linux; Android 11; vivo 1904; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.141 Mobile Safari/537.36 VivoBrowser/11.1.0.1' + family: 'VivoBrowser' + major: '11' + minor: '1' + patch: '0' + + - user_agent_string: 'Mozilla/5.0 (Linux; U; Android 13; zh-cn; Infinix X6833B Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 HiBrowser/v2.10.1.2 UWS/ Mobile Safari/537.36' + family: 'HiBrowser' + major: '2' + minor: '10' + patch: '1' + - user_agent_string: 'Mozilla/5.0 (Linux; Android 9; Pixel 2 XL Build/PPP5.180610.010; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.85 Mobile Safari/537.36' family: 'Chrome Mobile WebView' major: '68'