From 785a6d57fa813a0db0a6a1104db0ef9b5a520785 Mon Sep 17 00:00:00 2001 From: Louis Barthonet Date: Wed, 25 Oct 2023 16:00:18 +0100 Subject: [PATCH] feat: add support for MullvadBrowser --- regexes.yaml | 3 +++ tests/test_ua.yaml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..c6c6eb6c 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -1027,6 +1027,9 @@ user_agent_parsers: - regex: 'SerenityOS' family_replacement: 'SerenityOS Browser' + # MullvadBrowser (https://mullvad.net/en/browser) + - regex: '(MullvadBrowser)/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)' + os_parsers: ########## # HbbTV vendors diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 2b2bee8c..0b008329 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8681,3 +8681,9 @@ test_cases: major: '3' minor: '2' patch: '1' + + - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 MullvadBrowser/102.13.0' + family: 'MullvadBrowser' + major: '102' + minor: '13' + patch: '0' \ No newline at end of file