Skip to content

Commit cbe6038

Browse files
HyewonKkanghelen-one
authored andcommitted
Backport - Add Daum app user agent (#773)
* Add Daum app user agent --------- Co-authored-by: helen.one(강혜원)/kakao <helen.one@kakaocorp.com> (cherry picked from commit 4601953)
1 parent e665bd5 commit cbe6038

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/ua-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@
314314
/(Klarna)\/([\w\.]+)/i, // Klarna Shopping Browser for iOS & Android
315315
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, // Kakao App
316316
/(naver)\(.*?(\d+\.[\w\.]+).*\)/i, // Naver InApp
317+
/(daum)apps[\/ ]([\w\.]+)/i, // Daum App
317318
/safari (line)\/([\w\.]+)/i, // Line App for iOS
318319
/\b(line)\/([\w\.]+)\/iab/i, // Line App for Android
319320
/(alipay)client\/([\w\.]+)/i, // Alipay

test/browser-test.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,26 @@
24462446
"major" : "10"
24472447
}
24482448
},
2449+
{
2450+
"desc" : "Daum App Android",
2451+
"ua" : "Mozilla/5.0 (Linux; Android 11; SM-G970N Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.106 Mobile Safari/537.36 DaumApps/7.5.0 DaumDevice/mobile",
2452+
"expect" : {
2453+
"name" : "Daum",
2454+
"version": "7.5.0",
2455+
"major" : "7",
2456+
"type" : "inapp"
2457+
}
2458+
},
2459+
{
2460+
"desc" : "Daum App iOS",
2461+
"ua" : "Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Safari/605.1.15 Mobile/15E148 DaumApps/7.5.1 DaumDevice/mobile",
2462+
"expect" : {
2463+
"name" : "Daum",
2464+
"version": "7.5.1",
2465+
"major" : "7",
2466+
"type" : "inapp"
2467+
}
2468+
},
24492469
{
24502470
"desc" : "TikTok",
24512471
"ua" : "Mozilla/5.0 (Linux; Android 11; 21061119AG Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/92.0.4515.131 Mobile Safari/537.36 trill_2022109040 JsSdk/1.0 NetType/MOBILE Channel/googleplay AppName/musical_ly app_version/21.9.4 ByteLocale/ru-RU ByteFullLocale/ru-RU Region/KG BytedanceWebview/d8a21c6",

0 commit comments

Comments
 (0)