Skip to content

Commit

Permalink
added support patch-minor for SznProhlizec
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Mösner committed Feb 21, 2018
1 parent 63c0205 commit 28d096c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ user_agent_parsers:
# New Relic Pinger
- regex: '(NewRelicPinger)/(\d+)\.(\d+)'
family_replacement: 'NewRelicPingerBot'

# Tableau
- regex: '(Tableau)/(\d+)\.(\d+)'
family_replacement: 'Tableau'
Expand Down Expand Up @@ -269,7 +269,7 @@ user_agent_parsers:
family_replacement: 'Samsung Internet'

# Seznam.cz browser (based on WebKit)
- regex: '(SznProhlizec)/(\d+)\.(\d+)(?:\.(\d+))?'
- regex: '(SznProhlizec)/(\d+)\.(\d+)(?:\.(\d+)(?:-\d+)?)?'
family_replacement: 'Seznam.cz'

# Coc Coc browser, based on Chrome (used in Vietnam)
Expand Down Expand Up @@ -683,7 +683,7 @@ user_agent_parsers:

- regex: '(Phantom)/V(\d+)\.(\d+)'
family_replacement: 'Phantom Browser'

- regex: '(Trident)/(7)\.(0)'
family_replacement: 'IE'
v1_replacement: '11'
Expand Down
11 changes: 11 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7167,6 +7167,17 @@ test_cases:
minor: '0'
patch:

- user_agent_string: 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 SznProhlizec/4.3.0-251281'
family: 'Seznam.cz'
major: '4'
minor: '3'
patch: '0'

- user_agent_string: 'Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X Build/N2G47H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36 SznProhlizec/5.2.1a'
family: 'Seznam.cz'
major: '5'
minor: '2'
patch: '1'

- user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 SznProhlizec/3.8.4 NWjs/0.19.6'
family: 'Seznam.cz'
Expand Down

0 comments on commit 28d096c

Please sign in to comment.