Skip to content

Commit

Permalink
feat(client) detect CM Mini browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Mar 21, 2022
1 parent c2037bd commit 3c46816
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class Browser extends AbstractClientParser
'C1' => 'Coast',
'CX' => 'Charon',
'CE' => 'CM Browser',
'C7' => 'CM Mini',
'CF' => 'Chrome Frame',
'HC' => 'Headless Chrome',
'CH' => 'Chrome',
Expand Down
11 changes: 11 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5185,3 +5185,14 @@
family: Chrome
headers:
x-requested-with: fast.explorer.web.browser
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; H96 Max+ Build/OPM6.171019.030.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Safari/537.36
client:
type: browser
name: CM Mini
version: ""
engine: Blink
engine_version: ""
family: Chrome
headers:
x-requested-with: org.mini.freebrowser
2 changes: 1 addition & 1 deletion regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
'com.opera.browser': 'Opera'
'com.opera.mini.native': 'Opera Mini'
'com.wSilverMobBrowser': 'SilverMob US'
'fast.explorer.web.browser': 'Fast Explorer'
'org.mini.freebrowser': 'CM Mini'

0 comments on commit 3c46816

Please sign in to comment.