mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Added Barnes & Noble Tablet detection
This commit is contained in:
parent
a25426840c
commit
f3882f1882
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user