From 3afb471c74d4e66caad640f284bdc3cf87790f93 Mon Sep 17 00:00:00 2001 From: otakuSiD Date: Fri, 25 Jul 2014 18:23:17 +0300 Subject: [PATCH] Added Lenovo S5000 and S6000 --- src/ua-parser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ua-parser.js b/src/ua-parser.js index 9b82584..1e5042a 100644 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -463,6 +463,9 @@ /(sprint\s(\w+))/i // Sprint Phones ], [[VENDOR, mapper.str, maps.device.sprint.vendor], [MODEL, mapper.str, maps.device.sprint.model], [TYPE, MOBILE]], [ + /(Lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i // Lenovo tablets + ], [[VENDOR, 'Lenovo'], MODEL, [TYPE, TABLET]], [ + /(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, // HTC /(zte)-(\w+)*/i, // ZTE /(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i