diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 810f25e017..7acb3d8e07 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -663,6 +663,7 @@ class Browser extends AbstractClientParser 'YG' => 'YAGI', 'YJ' => 'Yahoo! Japan Browser', 'YA' => 'Yandex Browser', + 'Y4' => 'Yandex Browser Corp', 'YL' => 'Yandex Browser Lite', 'YN' => 'Yaani Browser', 'Y2' => 'Yo Browser', diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 8fa02c5c7a..d1a52a18f8 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -9711,3 +9711,30 @@ engine: WebKit engine_version: 604.1.38 family: Safari +- + user_agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.870 YaBrowser/24.1.3.870 (corp-ext) Yowser/2.5 Safari/537.36 + client: + type: browser + name: Yandex Browser Corp + version: 24.1.3.870 + engine: Blink + engine_version: 120.0.6099.870 + family: "" +- + user_agent: Mozilla/5.0 (Linux 6.1.57; ; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.234 Not_A Brand/8 YaBrowser/24.1.3.845 YaBrowserCorp/120 Yowser/2.5 Safari/537.36 + client: + type: browser + name: Yandex Browser Corp + version: 24.1.3.845 + engine: Blink + engine_version: 120.0.6099.234 + family: "" +- + user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 YaBrowser/23.7.1.1217 (corp) Yowser/2.5 Safari/537.36 + client: + type: browser + name: Yandex Browser Corp + version: 23.7.1.1217 + engine: Blink + engine_version: 114.0.0.0 + family: "" diff --git a/regexes/client/browsers.yml b/regexes/client/browsers.yml index 709adc53dc..739c12c9f9 100644 --- a/regexes/client/browsers.yml +++ b/regexes/client/browsers.yml @@ -2264,6 +2264,12 @@ version: '$1' engine: default: 'Blink' +# Yandex Browser Corp (https://browser.yandex.ru/corp) +- regex: 'YaBrowser/(\d+[\.\d]*).*corp' + name: 'Yandex Browser Corp' + version: '$1' + engine: + default: 'Blink' #Yandex Browser - regex: 'YaBrowser(?:/(\d+[\.\d]*))(?: \((alpha|beta)\))?' name: 'Yandex Browser'