Skip to content

Commit

Permalink
Add Mail+ app
Browse files Browse the repository at this point in the history
  • Loading branch information
matAtWork committed Mar 8, 2023
1 parent c88681c commit 1c320be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ user_agent_parsers:
- regex: '(TopBuzz)/(\d+).(\d+).(\d+)'
family_replacement: 'TopBuzz'

# Mail+ must go before Chrome Mobile WebView
- regex: 'TheMailApp_(iOS|Android)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Mail+ App'

# Google Search App on Android, eg:
- regex: 'Mozilla.{1,200}Android.{1,200}(GSA)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Google'
Expand Down
15 changes: 15 additions & 0 deletions tests/test_os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3195,3 +3195,18 @@ test_cases:
minor: '1'
patch: '1'
patch_minor:

- user_agent_string: 'Mozilla/5.0 (Linux; Android 13; SM-X900 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/110.0.5481.153 Safari/537.36 TheMailApp_Android/8.1.9.30.PROD'
family: 'Android'
major: '13'
minor:
patch:
patch_minor:

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_7_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 TheMailApp_iOS/8.1.9.30.PROD'
family: 'iOS'
major: '15'
minor: '7'
patch: '3'
patch_minor:

12 changes: 12 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8663,3 +8663,15 @@ test_cases:
major: '3'
minor: '2'
patch: '1'

- user_agent_string: 'Mozilla/5.0 (Linux; Android 13; SM-X900 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/110.0.5481.153 Safari/537.36 TheMailApp_Android/8.1.9.30.PROD'
family: 'Mail+ App'
major: '8'
minor: '1'
patch: '9'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_7_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 TheMailApp_iOS/8.1.9.30.PROD'
family: 'Mail+ App'
major: '8'
minor: '1'
patch: '9'

0 comments on commit 1c320be

Please sign in to comment.