Skip to content

Commit

Permalink
Merge pull request #561 from lbarthon/lbarthon/mullvad-browser
Browse files Browse the repository at this point in the history
feat: add support for MullvadBrowser
  • Loading branch information
lbarthon authored Feb 21, 2024
2 parents c318c48 + e04cc97 commit dfb8c52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,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
8 changes: 7 additions & 1 deletion tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8692,4 +8692,10 @@ test_cases:
family: 'Ecosia Android'
major: '101'
minor: '0'
patch: '4951'
patch: '4951'

- 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 dfb8c52

Please sign in to comment.