mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-17 23:37:43 +03:00
Backport - Improve browser detection: rename "Samsung Browser" to "Samsung Internet" (cherry picked from commit 5c10e2b107)
https://developer.samsung.com/internet/user-agent-string-format.html
This commit is contained in:
@@ -273,8 +273,10 @@
|
||||
], [VERSION, [NAME, FIREFOX]], [
|
||||
/\bqihu|(qi?ho?o?|360)browser/i // 360
|
||||
], [[NAME, '360 ' + BROWSER]], [
|
||||
/(oculus|samsung|sailfish|huawei|vivo)browser\/([\w\.]+)/i
|
||||
], [[NAME, /(.+)/, '$1 ' + BROWSER], VERSION], [ // Oculus/Samsung/Sailfish/HuaweiBrowser/VivoBrowser
|
||||
/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i
|
||||
], [[NAME, /(.+)/, '$1 ' + BROWSER], VERSION], [ // Oculus/Sailfish/HuaweiBrowser/VivoBrowser
|
||||
/samsungbrowser\/([\w\.]+)/i // Samsung Internet
|
||||
], [VERSION, [NAME, SAMSUNG + ' Internet']], [
|
||||
/(comodo_dragon)\/([\w\.]+)/i // Comodo Dragon
|
||||
], [[NAME, /_/g, ' '], VERSION], [
|
||||
/metasr[\/ ]?([\d\.]+)/i // Sogou Explorer
|
||||
|
||||
Reference in New Issue
Block a user