mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Add Playstation 4 support.
This commit is contained in:
parent
3bff4cf037
commit
ab6a56d931
@ -517,7 +517,7 @@
|
|||||||
/android.+;\s(shield)\sbuild/i // Nvidia
|
/android.+;\s(shield)\sbuild/i // Nvidia
|
||||||
], [MODEL, [VENDOR, 'Nvidia'], [TYPE, CONSOLE]], [
|
], [MODEL, [VENDOR, 'Nvidia'], [TYPE, CONSOLE]], [
|
||||||
|
|
||||||
/(playstation\s[3portablevi]+)/i // Playstation
|
/(playstation\s[34portablevi]+)/i // Playstation
|
||||||
], [MODEL, [VENDOR, 'Sony'], [TYPE, CONSOLE]], [
|
], [MODEL, [VENDOR, 'Sony'], [TYPE, CONSOLE]], [
|
||||||
|
|
||||||
/(sprint\s(\w+))/i // Sprint Phones
|
/(sprint\s(\w+))/i // Sprint Phones
|
||||||
@ -705,7 +705,7 @@
|
|||||||
], [[NAME, 'Firefox OS'], VERSION], [
|
], [[NAME, 'Firefox OS'], VERSION], [
|
||||||
|
|
||||||
// Console
|
// Console
|
||||||
/(nintendo|playstation)\s([wids3portablevu]+)/i, // Nintendo/Playstation
|
/(nintendo|playstation)\s([wids34portablevu]+)/i, // Nintendo/Playstation
|
||||||
|
|
||||||
// GNU/Linux based
|
// GNU/Linux based
|
||||||
/(mint)[\/\s\(]?(\w+)*/i, // Mint
|
/(mint)[\/\s\(]?(\w+)*/i, // Mint
|
||||||
|
@ -248,5 +248,15 @@
|
|||||||
"model" : "MI-ONE Plus",
|
"model" : "MI-ONE Plus",
|
||||||
"type" : "mobile"
|
"type" : "mobile"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "PlayStation 4",
|
||||||
|
"ua" : "Mozilla/5.0 (PlayStation 4 3.00) AppleWebKit/537.73 (KHTML, like Gecko)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"vendor" : "Sony",
|
||||||
|
"model" : "PlayStation 4",
|
||||||
|
"type" : "console"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -251,6 +251,15 @@
|
|||||||
"version" : ""
|
"version" : ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc" : "PlayStation 4",
|
||||||
|
"ua" : "Mozilla/5.0 (PlayStation 4 3.00) AppleWebKit/537.73 (KHTML, like Gecko)",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "PlayStation",
|
||||||
|
"version" : "4"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Mint",
|
"desc" : "Mint",
|
||||||
"ua" : "",
|
"ua" : "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user