Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EdgA, EdgiOS #451

Merged
merged 2 commits into from
Jan 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ user_agent_parsers:
# Edge Mobile
- regex: 'Windows Phone .*(Edge)/(\d+)\.(\d+)'
family_replacement: 'Edge Mobile'
- regex: '(EdgA)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Edge Mobile'
- regex: '(EdgiOS)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Edge Mobile'

# Samsung Internet (based on Chrome, but lacking some features)
- regex: '(SamsungBrowser)/(\d+)\.(\d+)'
Expand Down
17 changes: 15 additions & 2 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8061,10 +8061,23 @@ test_cases:
major: '1'
minor: '0'
patch: '0'

- user_agent_string: 'Mozilla/5.0 (Linux; U; Android 9; zh-cn; vivo X21 Build/PKQ1.180819.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 MQQBrowser/9.9 Mobile Safari/537.36'
family: 'QQ Browser Mobile'
major: '9'
minor: '9'
patch:


- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 Safari/603.2.4 EdgiOS/41.1.35.1'
family: 'Edge Mobile'
major: '41'
minor: '1'
patch: '35'
patch_minor: '1'

- user_agent_string: 'Mozilla/5.0 (Linux; Android 8.0; Pixel XL Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.0 Mobile Safari/537.36 EdgA/41.1.35.1'
family: 'Edge Mobile'
major: '41'
minor: '1'
patch: '35'
patch_minor: '1'