From 7768c205aed390d8092e624b0a1e7d84d44a77af Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Mon, 21 Mar 2022 19:55:12 +0100 Subject: [PATCH] Improves detection for Monument Browser ref #7039 --- Parser/Client/Browser.php | 2 +- Tests/Parser/Client/fixtures/browser.yml | 11 +++++++++++ regexes/client/hints/browsers.yml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 9f4287a844..d60d372dad 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -493,7 +493,7 @@ class Browser extends AbstractClientParser 'PE', 'QU', 'RE', 'S0', 'S7', 'SA', 'SB', 'SG', 'SK', 'ST', 'SU', 'T1', 'UH', 'UM', 'UT', 'VE', 'VV', 'WI', 'WP', 'YN', 'IO', 'IS', 'HQ', 'RW', 'HI', 'NA', 'BW', - 'YO', 'PK', + 'YO', 'PK', 'MR', ]; /** diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 2e8150898c..ade071901d 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -5081,3 +5081,14 @@ family: Opera headers: X-Requested-With: com.opera.gx +- + user_agent: Mozilla/5.0 (Linux; Android 9; SM-J415G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36 + client: + type: browser + name: Monument Browser + version: "" + engine: Blink + engine_version: "" + family: Chrome + headers: + X-Requested-With: br.marcelo.monumentbrowser diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index e8a37a1044..38daaef0c9 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -44,3 +44,4 @@ 'com.ecosia.android': 'Ecosia' 'org.lineageos.jelly': 'Jelly' 'com.opera.gx': 'Opera GX' +'br.marcelo.monumentbrowser': 'Monument Browser'