Merge pull request #60 from hhelwich/master

Fix hyphens in regexp character classes
This commit is contained in:
Faisal Salman 2014-08-23 22:00:00 +07:00
commit 3fc24a6d7a

View File

@ -205,7 +205,7 @@
browser : [[ browser : [[
/APP-([\w\s-\d]+)\/((\d+)?[\w\.]+)/i // KTA App /APP-([\w\s\d-]+)\/((\d+)?[\w\.]+)/i // KTA App
], [NAME, VERSION, MAJOR], [ ], [NAME, VERSION, MAJOR], [
// Presto based // Presto based
@ -500,7 +500,7 @@
/(lg) netcast\.tv/i // LG SmartTV /(lg) netcast\.tv/i // LG SmartTV
], [VENDOR, [TYPE, SMARTTV]], [ ], [VENDOR, [TYPE, SMARTTV]], [
/((nexus\s[45]))/i, // LG /((nexus\s[45]))/i, // LG
/(lg)[e;\s-\/]+(\w+)*/i /(lg)[e;\s\/-]+(\w+)*/i
], [[VENDOR, 'LG'], MODEL, [TYPE, MOBILE]], [ ], [[VENDOR, 'LG'], MODEL, [TYPE, MOBILE]], [
/android.+((ideatab[a-z0-9\-\s]+))/i // Lenovo /android.+((ideatab[a-z0-9\-\s]+))/i // Lenovo
@ -511,7 +511,7 @@
], ],
engine : [[ engine : [[
/APP-([\w\s-\d]+)\/((\d+)?[\w\.]+)/i // KTA App /APP-([\w\s\d-]+)\/((\d+)?[\w\.]+)/i // KTA App
], [[NAME, 'Mobile-App'], VERSION], [ ], [[NAME, 'Mobile-App'], VERSION], [
/(presto)\/([\w\.]+)/i, // Presto /(presto)\/([\w\.]+)/i, // Presto