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