Skip to content

Commit

Permalink
rename UIWebView -> UI/WKWebView
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-stripe committed Apr 13, 2016
1 parent c7c5284 commit fee5011
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,15 @@ user_agent_parsers:
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?.* Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Mobile Safari UIWebView'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPhone|iPad);.*CPU.*OS (\d+)_(\d+)(?:_(\d+))?.*Mobile.* Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPhone|iPad);.*CPU.*OS (\d+)_(\d+)(?:_(\d+))?.*Mobile'
family_replacement: 'Mobile Safari UIWebView'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPhone|iPad).* Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPhone|iPad)'
family_replacement: 'Mobile Safari UIWebView'
family_replacement: 'Mobile Safari UI/WKWebView'

- regex: '(AvantGo) (\d+).(\d+)'

Expand Down
2 changes: 1 addition & 1 deletion test_resources/pgts_browser_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_cases:
patch:

- user_agent_string: 'Alizee iPod 2005 (Beta; Mac OS X)'
family: 'Mobile Safari UIWebView'
family: 'Mobile Safari UI/WKWebView'
major:
minor:
patch:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ test_cases:
patch: '2'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Mobile/11D257'
family: 'Mobile Safari UIWebView'
family: 'Mobile Safari UI/WKWebView'
major: '7'
minor: '1'
patch: '2'
Expand Down Expand Up @@ -6394,7 +6394,7 @@ test_cases:
patch: '1'

- user_agent_string: 'Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile'
family: 'Mobile Safari UIWebView'
family: 'Mobile Safari UI/WKWebView'
major: '4'
minor: '3'
patch: '2'
Expand Down

0 comments on commit fee5011

Please sign in to comment.