Fix #220 Identify UBrowser as UCBrowser

This commit is contained in:
Faisal Salman 2017-06-28 14:36:59 +07:00
parent 3a4626b5e8
commit 07fe58b793
2 changed files with 11 additions and 4 deletions

View File

@ -270,10 +270,7 @@
/(puffin)\/([\w\.]+)/i // Puffin /(puffin)\/([\w\.]+)/i // Puffin
], [[NAME, 'Puffin'], VERSION], [ ], [[NAME, 'Puffin'], VERSION], [
/(uc\s?browser)[\/\s]?([\w\.]+)/i, /((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i
/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,
/juc.+(ucweb)[\/\s]?([\w\.]+)/i,
/(ucbrowser)\/([\w\.]+)/i
// UCBrowser // UCBrowser
], [[NAME, 'UCBrowser'], VERSION], [ ], [[NAME, 'UCBrowser'], VERSION], [

View File

@ -789,6 +789,16 @@
"major" : "1" "major" : "1"
} }
}, },
{
"desc" : "UC Browser",
"ua" : "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 UBrowser/5.6.12860.7 Safari/537.36",
"expect" :
{
"name" : "UCBrowser",
"version" : "5.6.12860.7",
"major" : "5"
}
},
{ {
"desc" : "UC Browser", "desc" : "UC Browser",
"ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; en-US; Lenovo P2a42 Build/MMB29M) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.2.0.915 U3/0.8.0 Mobile Safari/534.30", "ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; en-US; Lenovo P2a42 Build/MMB29M) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.2.0.915 U3/0.8.0 Mobile Safari/534.30",