Skip to content

Commit

Permalink
Merge pull request #558 from lbarthon/lbarthon/edge-ipados
Browse files Browse the repository at this point in the history
fix: parse Edge on iPad OS properly
  • Loading branch information
lbarthon authored Feb 21, 2024
2 parents dfb8c52 + ff278a9 commit f1a1ce0
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 @@ -388,7 +388,7 @@ user_agent_parsers:
# Edge Mobile
- regex: 'Windows Phone .{0,200}(Edge)/(\d+)\.(\d+)'
family_replacement: 'Edge Mobile'
- regex: '(EdgiOS|EdgA)/(\d+)\.(\d+)\.(\d+)(?:\.(\d+)|)'
- regex: '(EdgiOS|EdgA)/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)(?:\.(\d+)|)'
family_replacement: 'Edge Mobile'

# Oculus Browser, should go before Samsung Internet
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8699,3 +8699,9 @@ test_cases:
major: '102'
minor: '13'
patch: '0'

- user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/108 Version/13.0.3 Safari/605.1.15'
family: 'Edge Mobile'
major: '108'
minor:
patch:

0 comments on commit f1a1ce0

Please sign in to comment.