Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adds detection for KUN browser #7708

Merged
merged 3 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ class Browser extends AbstractClientParser
'K4' => 'Kitt',
'KW' => 'Kiwi',
'KD' => 'Kode Browser',
'KU' => 'KUN',
'KT' => 'KUTO Mini Browser',
'KY' => 'Kylo',
'KZ' => 'Kazehakase',
Expand Down Expand Up @@ -763,7 +764,7 @@ class Browser extends AbstractClientParser
'H5', 'V3', 'G2', 'BG', 'OL', 'II', 'TL', 'M6', 'Y3',
'M7', 'GN', 'D3', 'IG', 'HW', '4O', 'OU', '5P', 'KE',
'5A', 'TT', '6P', 'G3', '7P', 'VU', 'F8', 'L4', 'DK',
'DP', 'KL', 'K4', 'N6',
'DP', 'KL', 'K4', 'N6', 'KU',
];

/**
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9424,3 +9424,12 @@
engine: Gecko
engine_version: 1.9.1
family: Firefox
-
user_agent: Mozilla/4.0 (compatible; KUN/3.0.1; SPH-W9000; CellPhone; Profile/1.0)
client:
type: browser
name: KUN
version: 3.0.1
engine: ""
engine_version: ""
family: ""
5 changes: 5 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

# KUN (https://api.dcmys.kr/etc/historical/kun_3.0.1_cp_개발자_가이드_v1.1.pdf)
- regex: 'KUN/(\d+[\.\d]+)'
name: 'KUN'
version: '$1'

# Naenara Browser (https://en.wikipedia.org/wiki/Naenara_(browser))
- regex: 'NaenaraBrowser(?:/(\d+[\.\d]+))?'
name: 'Naenara Browser'
Expand Down
Loading