Adding support for Puffin browser

This commit is contained in:
Dario Vladovic 2017-03-21 18:41:51 +01:00
parent 2bc75f10bc
commit 7a68f35574
4 changed files with 16 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -83,7 +83,7 @@
rgx : function (ua, arrays) { rgx : function (ua, arrays) {
//var result = {}, //var result = {},
var i = 0, j, k, p, q, matches, match;//, args = arguments; var i = 0, j, k, p, q, matches, match;//, args = arguments;
/*// construct object barebones /*// construct object barebones
@ -267,6 +267,9 @@
/(yabrowser)\/([\w\.]+)/i // Yandex /(yabrowser)\/([\w\.]+)/i // Yandex
], [[NAME, 'Yandex'], VERSION], [ ], [[NAME, 'Yandex'], VERSION], [
/(puffin)\/([\w\.]+)/i // Puffin
], [[NAME, 'Puffin'], VERSION], [
/(uc\s?browser)[\/\s]?([\w\.]+)/i, /(uc\s?browser)[\/\s]?([\w\.]+)/i,
/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i, /ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,
/juc.+(ucweb)[\/\s]?([\w\.]+)/i, /juc.+(ucweb)[\/\s]?([\w\.]+)/i,

View File

@ -849,6 +849,16 @@
"major" : "1" "major" : "1"
} }
}, },
{
"desc" : "Puffin",
"ua" : "Mozilla/5.0 (Linux; Android 6.0.1; Lenovo P2a42 Build/MMB29M; en-us) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Mobile Safari/537.36 Puffin/6.0.8.15804AP",
"expect" :
{
"name" : "Puffin",
"version" : "6.0.8.15804AP",
"major" : "6"
}
},
{ {
"desc" : "Microsoft Edge", "desc" : "Microsoft Edge",
"ua" : "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0", "ua" : "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0",