Skip to content

Commit

Permalink
feat: add support for MullvadBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarthon committed Oct 25, 2023
1 parent d668d6c commit 785a6d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 785a6d5

Please sign in to comment.