diff --git a/regexes.yaml b/regexes.yaml index 302e4b5b..60a89b0f 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -225,6 +225,9 @@ user_agent_parsers: family_replacement: 'TikTok' - regex: '(BytedanceWebview)\/[a-z0-9]+' family_replacement: 'TikTok' + # KakaoTalk + - regex: 'Mozilla.{1,200}Mobile.{1,100}(KAKAOTALK)/(\d+)\.(\d+)\.(\d+)' + family_replacement: 'KakaoTalk' # Phantom app - regex: 'Mozilla.{1,200}Mobile.{1,100}(Phantom\/ios|Phantom\/android).(\d+)\.(\d+)\.(\d+)' diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index a1204a6f..4e2fe0fc 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -7850,7 +7850,25 @@ test_cases: major: minor: patch: - + + - user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Safari/604.1 KAKAOTALK/11.3.1 (INAPP)' + family: 'KakaoTalk' + major: '11' + minor: '3' + patch: '1' + + - user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Safari/604.1 KAKAOTALK/11.3.1 (PFINAPP)' + family: 'KakaoTalk' + major: '11' + minor: '3' + patch: '1' + + - user_agent_string: 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.0.0 Mobile Safari/537.36 KAKAOTALK/11.3.1 (INAPP)' + family: 'KakaoTalk' + major: '11' + minor: '3' + patch: '1' + - user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_6 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Mobile/15D100 Flipboard/4.2.2' family: 'Flipboard' major: '4'