Skip to content
Open
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
5 changes: 5 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ user_agent_parsers:
# HiBrowser
- regex: '(HiBrowser)\/v(\d+)\.(\d+)\.(\d+)\.(\d+)'

# Kwai
# must before Chrome Mobile WebView
- regex: '(Kwai|ksNebula|Merchantshop)\/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Kwai'

# Chrome Mobile
- regex: 'Version/.{1,300}(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Chrome Mobile WebView'
Expand Down
28 changes: 28 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,34 @@ test_cases:
minor: '10'
patch: '1'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Kwai/13.3.30.9227 ISLP/0 StatusHT/62 KDT/PHONE iosSCH/0 TitleHT/44 NetType/WIFI ISDM/0 ICFO/0 locale/zh-Hans CT/0 Yoda/3.1.3 ISLB/0 CoIS/0 ISLM/0 WebViewType/WK BHT/102 AZPREFIX/az4'
family: 'Kwai'
major: '13'
minor: '3'
patch: '30'
patch_minor: '9227'

- user_agent_string: 'Mozilla/5.0 (Linux; Android 12; BRT-W09 Build/HONORBRT-W09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/92.0.4515.105 Safari/537.36 Yoda/3.2.13-rc4 Kwai/13.3.30.41464 OS_PRO_BIT/64 MAX_PHY_MEM/7851 KDT/PAD AZPREFIX/az2 ICFO/0 StatusHT/24 TitleHT/44 NetType/WIFI ISLP/0 ISDM/0 ISLB/0 locale/zh-cn SHP/2560 SWP/1600 SD/2.5 CT/0 ISLM/0'
family: 'Kwai'
major: '13'
minor: '3'
patch: '30'
patch_minor: '41464'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 ksNebula/13.2.30.3824 ISLP/0 StatusHT/48 KDT/PHONE iosSCH/0 TitleHT/44 NetType/WIFI ISDM/0 ICFO/0 locale/zh-Hans CT/0 Yoda/3.1.1 ISLB/0 CoIS/0 ISLM/0 WebViewType/WK BHT/68 AZPREFIX/az4'
family: 'Kwai'
major: '13'
minor: '2'
patch: '30'
patch_minor: '3824'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Merchantshop/6.3.30.1218 PGID/0447B97E-93D4-4489-B529-881C01F0C0F5 Yoda/2.10.4.5.stable6 StatusHT/54 NetType/WIFI TitleHT/44 WebViewType/WK'
family: 'Kwai'
major: '6'
minor: '3'
patch: '30'
patch_minor: '1218'

- user_agent_string: 'Mozilla/5.0 (Linux; Android 9; Pixel 2 XL Build/PPP5.180610.010; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.85 Mobile Safari/537.36'
family: 'Chrome Mobile WebView'
major: '68'
Expand Down