mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-15 22:52:16 +03:00
Updated the regexp patterns to be simpler/safer.
This commit is contained in:
@@ -667,13 +667,11 @@
|
||||
|
||||
/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i // Gigaset Tablets
|
||||
], [VENDOR, MODEL, [TYPE, TABLET]], [
|
||||
|
||||
// Android Phones from Unidentified Vendors
|
||||
/android .+?;\s([^;]+?)(?:\sbuild.+?)?\) applewebkit.+?\smobile\ssafari/i
|
||||
/android .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i
|
||||
], [MODEL, [TYPE, MOBILE]], [
|
||||
|
||||
// Android Tablets from Unidentified Vendors
|
||||
/android .+?;\s([^;]+?)(?:\sbuild.+?)?\) applewebkit.+?(?!\smobile)\ssafari/i
|
||||
/android .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i
|
||||
], [MODEL, [TYPE, TABLET]], [
|
||||
|
||||
/\s(tablet|tab)[;\/]/i, // Unidentifiable Tablet
|
||||
|
||||
Reference in New Issue
Block a user