1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix Yandex Browser version detection

fixes #308
This commit is contained in:
Denis Demchenko 2019-04-07 11:28:03 +03:00
parent 19288762f1
commit 428dadc503
2 changed files with 17 additions and 1 deletions

View File

@ -174,7 +174,7 @@ const browsersList = [
const browser = {
name: 'Yandex Browser',
};
const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
const version = Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
if (version) {
browser.version = version;

View File

@ -673,6 +673,22 @@
vendor: "Nexus"
engine:
name: "Blink"
-
ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 YaBrowser/19.3.3.157.10 Mobile/15E148 Safari/605.1"
spec:
browser:
name: "Yandex Browser"
version: "19.3.3.157.10"
os:
name: "iOS"
version: "12.2"
platform:
type: "mobile"
vendor: "Apple"
model: "iPhone"
engine:
name: "WebKit"
version: "605.1.15"
Safari:
-
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"