Fix #454 Improve Samsung detection

This commit is contained in:
Faisal Salman 2021-03-12 19:20:17 +07:00
parent 6aa3ff1374
commit 46615e70db
2 changed files with 10 additions and 1 deletions

View File

@ -540,7 +540,7 @@
/smart-tv.+(samsung)/i /smart-tv.+(samsung)/i
], [VENDOR, [TYPE, SMARTTV], MODEL], [ ], [VENDOR, [TYPE, SMARTTV], MODEL], [
/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,
/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /\s(sam)(?:sung)[\s-]([\w-]+)/i,
/sec-((sgh\w+))/i /sec-((sgh\w+))/i
], [[VENDOR, 'Samsung'], MODEL, [TYPE, MOBILE]], [ ], [[VENDOR, 'Samsung'], MODEL, [TYPE, MOBILE]], [

View File

@ -1378,5 +1378,14 @@
"expect": { "expect": {
"type": "mobile" "type": "mobile"
} }
},
{
"desc": "Issue #454",
"ua": "Mosamzilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20050603 Netscape/8.0.2",
"expect": {
"vendor": "undefined",
"model": "undefined",
"type": "undefined"
}
} }
] ]