Skip to content

Commit

Permalink
Merge pull request #344 from broggeri/master
Browse files Browse the repository at this point in the history
Fix #271: add Google user-agent on iOS
  • Loading branch information
elsigh committed Oct 18, 2018
2 parents ce44676 + dc36598 commit 688544d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ user_agent_parsers:
family_replacement: 'Bon Echo'

# @note: iOS / OSX Applications
- regex: '(iPod|iPhone|iPad).+GSA/(\d+)\.(\d+)\.(\d+) Mobile'
family_replacement: 'Google'
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?.*[ +]Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\d+)_(\d+)(?:_(\d+))?.* AppleNews\/\d+\.\d+\.\d+?'
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7711,3 +7711,9 @@ test_cases:
minor:
patch:

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0_2 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) GSA/36.0.169645775 Mobile/15A421 Safari/604.1'
family: 'Google'
major: '36'
minor: '0'
patch: '169645775'

0 comments on commit 688544d

Please sign in to comment.