Zalo integration in UAParser (#1) (#792)

This commit is contained in:
Suryaansh Chawla
2025-08-01 17:03:52 +05:30
committed by GitHub
parent 3fe137e533
commit ab299a23b7
4 changed files with 27 additions and 1 deletions

View File

@@ -154,6 +154,7 @@ export const Browser: Readonly<{
WHALE: "Whale";
WOLVIC: "Wolvic";
YANDEX: "Yandex";
ZALO: "Zalo";
}>;
export const BrowserType: Readonly<{
CRAWLER: "crawler";

View File

@@ -158,7 +158,8 @@ const Browser = Object.freeze({
WEIBO: 'Weibo',
WHALE: 'Whale',
WOLVIC: 'Wolvic',
YANDEX: 'Yandex'
YANDEX: 'Yandex',
ZALO: 'Zalo'
// TODO : test!
});

View File

@@ -455,6 +455,8 @@
], [VERSION, [NAME, 'TikTok'], [TYPE, INAPP]], [
/\[(linkedin)app\]/i // LinkedIn App for iOS & Android
], [NAME, [TYPE, INAPP]], [
/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i // Zalo
], [[NAME, /(.+)/, 'Zalo'], VERSION, [TYPE, INAPP]], [
/(chromium)[\/ ]([-\w\.]+)/i // Chromium
], [NAME, VERSION], [