mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-12-15 04:34:08 +03:00
Add new device vendor: Valve - https://www.valvesoftware.com
This commit is contained in:
@@ -290,6 +290,7 @@ const DeviceVendor = Object.freeze({
|
||||
TECNO: 'TECNO',
|
||||
TESLA: 'Tesla',
|
||||
ULEFONE: 'Ulefone',
|
||||
VALVE: 'Valve',
|
||||
VIVO: 'Vivo',
|
||||
VIZIO: 'Vizio',
|
||||
VODAFONE: 'Vodafone',
|
||||
|
||||
@@ -853,6 +853,7 @@
|
||||
/(ouya)/i, // Ouya
|
||||
/(nintendo) (\w+)/i, // Nintendo
|
||||
/(retroid) (pocket ([^\)]+))/i, // Retroid Pocket
|
||||
/(valve).+(steam deck)/i,
|
||||
/droid.+; ((shield|rgcube|gr0006))( bui|\))/i // Nvidia Portable/Anbernic/Logitech
|
||||
], [[VENDOR, strMapper, { 'Nvidia': 'Shield', 'Anbernic': 'RGCUBE', 'Logitech': 'GR0006' }], MODEL, [TYPE, CONSOLE]], [
|
||||
|
||||
|
||||
11
test/data/ua/device/valve.json
Normal file
11
test/data/ua/device/valve.json
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"desc": "Valve",
|
||||
"ua": "Mozilla/5.0 (X11; Linux x86_64; Valve Steam Client/Steam Deck [Steam Deck Beta]/default/0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.183 Safari/537.36",
|
||||
"expect": {
|
||||
"vendor": "Valve",
|
||||
"model": "Steam Deck",
|
||||
"type": "console"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user