From 3c46816382abc54732aa1bfce47e0814dc778bc2 Mon Sep 17 00:00:00 2001 From: sanchezzzhak Date: Mon, 21 Mar 2022 17:12:13 +0300 Subject: [PATCH] feat(client) detect CM Mini browser issue #7039 --- Parser/Client/Browser.php | 1 + Tests/Parser/Client/fixtures/browser.yml | 11 +++++++++++ regexes/client/hints/browsers.yml | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 7053069692..01d426603f 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -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', diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index ff0ef36ebc..ef471bcad8 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -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 diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index 160479908d..1905c191d9 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -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'