Skip to content

Commit e8990a1

Browse files
committed
fix: add regex patterns for QQ Browser
1 parent 6a0ecc9 commit e8990a1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

regexes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,10 @@ user_agent_parsers:
892892
- regex: 'compatible; monitis'
893893
family_replacement: 'Monitis'
894894

895+
# QQ
896+
- regex: '(QQ)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
897+
family_replacement: 'QQ'
898+
895899
#### END MAIN CASES ####
896900

897901
#### SPECIAL CASES ####

tests/test_ua.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8765,6 +8765,13 @@ test_cases:
87658765
minor:
87668766
patch:
87678767

8768+
- 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 QQ/9.1.65.602 V1_IPH_SQ_9.1.65_1_APP_A Pixel/1206 MiniAppEnable SimpleUISwitch/0 StudyMode/0 CurrentMode/0 CurrentFontScale/1.000000 QQTheme/1000 AppId/537277312 Core/WKWebView Device/Apple(iPhone X) NetType/WIFI QBWebViewType/1 WKType/1'
8769+
family: 'QQ'
8770+
major: '9'
8771+
minor: '1'
8772+
patch: '65'
8773+
patch_minor: '602'
8774+
87688775
- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302 Pandora/1902.1'
87698776
family: 'Pandora'
87708777
major: '1902'

0 commit comments

Comments
 (0)