Skip to content

Commit

Permalink
Update patterns to include IE compatibility mode and others changes f…
Browse files Browse the repository at this point in the history
…rom UA core
  • Loading branch information
doomspork committed Nov 29, 2017
1 parent 2d0b888 commit 3650dd1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion priv/patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ user_agent_parsers:
# @note: iOS / OSX Applications
- 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+?'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\d+)_(\d+)(?:_(\d+))?.*Mobile.*[ +]Safari'
Expand Down Expand Up @@ -673,8 +675,21 @@ user_agent_parsers:
- regex: '(Phantom)/V(\d+)\.(\d+)'
family_replacement: 'Phantom Browser'

- regex: 'Trident(.*)rv.(\d+)\.(\d+)'
- regex: '(Trident)/(7)\.(0)'
family_replacement: 'IE'
v1_replacement: '11'

- regex: '(Trident)/(6)\.(0)'
family_replacement: 'IE'
v1_replacement: '10'

- regex: '(Trident)/(5)\.(0)'
family_replacement: 'IE'
v1_replacement: '9'

- regex: '(Trident)/(4)\.(0)'
family_replacement: 'IE'
v1_replacement: '8'

# Espial
- regex: '(Espial)/(\d+)(?:\.(\d+))?(?:\.(\d+))?'
Expand Down

0 comments on commit 3650dd1

Please sign in to comment.