mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Fix #454 Improve Samsung detection
This commit is contained in:
parent
6aa3ff1374
commit
46615e70db
@ -540,7 +540,7 @@
|
||||
/smart-tv.+(samsung)/i
|
||||
], [VENDOR, [TYPE, SMARTTV], MODEL], [
|
||||
/((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
|
||||
], [[VENDOR, 'Samsung'], MODEL, [TYPE, MOBILE]], [
|
||||
|
||||
|
@ -1378,5 +1378,14 @@
|
||||
"expect": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user