Backport - Fix #730 - Improve browser detection: DuckDuckGo

(cherry picked from commit e87c794fd9)
This commit is contained in:
Faisal Salman
2024-05-28 20:35:18 +07:00
parent 775de4ea82
commit e7bfc4e28d
2 changed files with 12 additions and 0 deletions

View File

@@ -243,6 +243,8 @@
/(heytap|ovi)browser\/([\d\.]+)/i, // Heytap/Ovi
/(weibo)__([\d\.]+)/i // Weibo
], [NAME, VERSION], [
/\bddg\/([\w\.]+)/i // DuckDuckGo
], [VERSION, [NAME, 'DuckDuckGo']], [
/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i // UCBrowser
], [VERSION, [NAME, 'UC'+BROWSER]], [
/microm.+\bqbcore\/([\w\.]+)/i, // WeChat Desktop for Windows Built-in Browser