Skip to content

Commit

Permalink
Merge pull request #573 from KnifeLemon/patch-1
Browse files Browse the repository at this point in the history
Add KakaoTalk App, KakaoStory App regex
  • Loading branch information
faisalman authored Jan 26, 2023
2 parents 97e4a89 + 534ba7d commit 4d3048a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/ua-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
SONY = 'Sony',
XIAOMI = 'Xiaomi',
ZEBRA = 'Zebra',
FACEBOOK = 'Facebook';
FACEBOOK = 'Facebook',
KAKAO = 'Kakao',
NAVER = 'Naver';

///////////
// Helper
Expand Down Expand Up @@ -224,6 +226,10 @@
/\bopr\/([\w\.]+)/i // Opera Webkit
], [VERSION, [NAME, OPERA]], [

/Safari\/([-\w\.]+).+NAVER\((.*)\)/i, // Naver InApp for iOS
/whale\/([-\w\.]+).+NAVER\((.*)\)/i // Naver InApp Android
], [VERSION,[NAME, /(.+); (.+); [0-9]+;.+/i, NAVER+' $1 $2']], [

// Mixed
/(kindle)\/([\w\.]+)/i, // Kindle
/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, // Lunascape/Maxthon/Netfront/Jasmine/Blazer
Expand Down Expand Up @@ -291,6 +297,10 @@
/\bgsa\/([\w\.]+) .*safari\//i // Google Search Appliance on iOS
], [VERSION, [NAME, 'GSA']], [

/AppleWebKit\/([\w\.]+).+kakao(.*)\s+/i, // Kakao App for iOS
/ wv\).+chrome\/([\w\.]+).+kakao(.+)\//i // Kakao App for Android
], [VERSION, [NAME, /(.+)/i, KAKAO+'$1']], [

/headlesschrome(?:\/([\w\.]+)| )/i // Chrome Headless
], [VERSION, [NAME, CHROME+' Headless']], [

Expand Down

0 comments on commit 4d3048a

Please sign in to comment.