Added Barnes & Noble Tablet detection

This commit is contained in:
Nikhil Motiani 2017-03-16 15:03:04 +05:30 committed by Nikhil Motiani
parent a25426840c
commit f3882f1882
2 changed files with 25 additions and 0 deletions

View File

@ -648,6 +648,9 @@
/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i // Verizon Tablet
], [MODEL, [VENDOR, 'Verizon'], [TYPE, TABLET]], [
/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i // Barnes & Noble Tablet
], [[VENDOR, 'Barnes & Noble'], MODEL, [TYPE, TABLET]], [
/\s(tablet)[;\/]/i, // Unidentifiable Tablet
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile

View File

@ -622,4 +622,26 @@
"type" : "tablet"
}
}
,
{
"desc" : "Barnes & Noble Nook HD+ Tablet",
"ua" : "Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; Barnes & Noble Nook HD+ Build/JZO54K; CyanogenMod-10) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
"expect" :
{
"vendor" : "Barnes & Noble",
"model" : "Nook HD+",
"type" : "tablet"
}
}
,
{
"desc" : "Barnes & Noble V400 Tablet",
"ua" : "Mozilla/5.0 (Linux; Android 4.0.4; BNTV400 Build/IMM76L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36",
"expect" :
{
"vendor" : "Barnes & Noble",
"model" : "V400",
"type" : "tablet"
}
}
]