From 386ebc29f1d6460900f807b5a5993104b4df1cb4 Mon Sep 17 00:00:00 2001 From: Gerald Host Date: Tue, 5 Jan 2021 12:59:41 +0000 Subject: [PATCH 1/2] feat: update readme playstation Update Playstation to PlayStation as "Playstation" is not a known user agent. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 91d58fead..bffa2f5fa 100644 --- a/readme.md +++ b/readme.md @@ -81,7 +81,7 @@ AIX, Amiga OS, Android, Arch, Bada, BeOS, BlackBerry, CentOS, Chromium OS, Contiki, Fedora, Firefox OS, FreeBSD, Debian, DragonFly, Fuchsia, Gentoo, GNU, Haiku, Hurd, iOS, Joli, KaiOS, Linpus, Linux, Mac OS, Mageia, Mandriva, MeeGo, Minix, Mint, Morph OS, NetBSD, Nintendo, OpenBSD, OpenVMS, OS/2, Palm, PC-BSD, -PCLinuxOS, Plan9, Playstation, QNX, RedHat, RIM Tablet OS, RISC OS, Sailfish, +PCLinuxOS, Plan9, PlayStation, QNX, RedHat, RIM Tablet OS, RISC OS, Sailfish, Series40, Slackware, Solaris, SUSE, Symbian, Tizen, Ubuntu, Unix, VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk, ... From f543c5ad72436fab77a19b601ac72e5a4b36fb8a Mon Sep 17 00:00:00 2001 From: Dustin Date: Thu, 7 Jan 2021 09:41:20 -0800 Subject: [PATCH 2/2] facebook movile app with no browser info --- src/ua-parser.js | 5 ++++- test/device-test.json | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ua-parser.js b/src/ua-parser.js index 0e8ffab64..71853b78a 100755 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -689,7 +689,10 @@ ], [[TYPE, SMARTTV]], [ /(android[\w\.\s\-]{0,9});.+build/i // Generic Android Device - ], [MODEL, [VENDOR, 'Generic']] + ], [MODEL, [VENDOR, 'Generic']], [ + + /(phone)/i, + ], [[TYPE, MOBILE]] ], engine : [[ diff --git a/test/device-test.json b/test/device-test.json index 5c2056b95..ea171b249 100644 --- a/test/device-test.json +++ b/test/device-test.json @@ -1326,5 +1326,12 @@ "model": "LYA-TL00", "type": "mobile" } + }, + { + "desc": "FaceBook Mobile App", + "ua": "[FBAN/FBIOS;FBAV/283.0.0.44.117;FBBV/238386386;FBDV/iPhone12,1;FBMD/iPhone;FBSN/iOS;FBSV/13.6.1;FBSS/2;FBID/phone;FBLC/en_US;FBOP/5;FBRV/240127608]", + "expect": { + "type": "mobile" + } } ]