mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Fix hyphens in regexp character classes
This commit is contained in:
parent
31187b1be1
commit
6f91063634
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user