1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +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;