Skip to content

Commit

Permalink
Merge pull request #425 from AdamGen3/Outlook-2016-Refinement
Browse files Browse the repository at this point in the history
MSOffice 16 User Agent #405
  • Loading branch information
elsigh authored Nov 5, 2019
2 parents 7d5f5d9 + 8e74958 commit 2e28be1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ user_agent_parsers:
v1_replacement: '2013'

# Outlook 2016
- regex: 'Microsoft Outlook (?:Mail )?16\.\d+\.\d+'
- regex: 'Microsoft Outlook (?:Mail )?16\.\d+\.\d+|MSOffice 16'
family_replacement: 'Outlook'
v1_replacement: '2016'

Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6903,6 +6903,12 @@ test_cases:
minor:
patch:

- user_agent_string: 'Mozilla/4.0 (compatible; ms-office; MSOffice 16)'
family: 'Outlook'
major: '2016'
minor:
patch:

- user_agent_string: 'Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; TmstmpExt)'
family: 'Windows Live Mail'
major:
Expand Down

0 comments on commit 2e28be1

Please sign in to comment.