mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 08:28:47 +03:00
Added Dragon-Touch Tablets detection
This commit is contained in:
parent
38c409e8d9
commit
48ab3b372c
@ -666,6 +666,10 @@
|
|||||||
/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i // Zeki Tablets
|
/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i // Zeki Tablets
|
||||||
], [MODEL, [VENDOR, 'Zeki'], [TYPE, TABLET]], [
|
], [MODEL, [VENDOR, 'Zeki'], [TYPE, TABLET]], [
|
||||||
|
|
||||||
|
/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,
|
||||||
|
/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i // Dragon Touch Tablet
|
||||||
|
], [[VENDOR, 'Dragon Touch'], MODEL, [TYPE, TABLET]], [
|
||||||
|
|
||||||
/\s(tablet)[;\/]/i, // Unidentifiable Tablet
|
/\s(tablet)[;\/]/i, // Unidentifiable Tablet
|
||||||
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile
|
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile
|
||||||
], [[TYPE, util.lowerize], VENDOR, MODEL], [
|
], [[TYPE, util.lowerize], VENDOR, MODEL], [
|
||||||
|
@ -710,4 +710,15 @@
|
|||||||
"type" : "tablet"
|
"type" : "tablet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"desc" : "Dragon Touch Tablet",
|
||||||
|
"ua" : "Mozilla/5.0 (Linux; Android 4.0.4; DT9138B Build/IMM76D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.72 Mobile Safari/537.36",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"vendor" : "Dragon Touch",
|
||||||
|
"model" : "9138B",
|
||||||
|
"type" : "tablet"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user