Merge pull request #173 from sueddeutsche/fix/samsung-device-detection

Add generic device detection for samsung smartphones
This commit is contained in:
Faisal Salman
2016-11-07 00:02:02 +07:00
committed by GitHub
2 changed files with 52 additions and 1 deletions

View File

@@ -561,7 +561,7 @@
/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,
/((SM-T\w+))/i
], [[VENDOR, 'Samsung'], MODEL, [TYPE, TABLET]], [ // Samsung
/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,
/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,
/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,
/sec-((sgh\w+))/i
], [[VENDOR, 'Samsung'], MODEL, [TYPE, MOBILE]], [