Improve device detection: Nothing, Sony

This commit is contained in:
Faisal Salman
2025-05-12 14:00:58 +07:00
parent 6a2a3a61b6
commit be16c04a33
3 changed files with 83 additions and 2 deletions

View File

@@ -634,7 +634,7 @@
], [MODEL, [VENDOR, GOOGLE], [TYPE, MOBILE]], [
// Sony
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
], [MODEL, [VENDOR, SONY], [TYPE, MOBILE]], [
/sony tablet [ps]/i,
/\b(?:sony)?sgp\w+(?: bui|\))/i
@@ -715,7 +715,7 @@
], [MODEL, [VENDOR, 'Smartfren'], [TYPE, MOBILE]], [
// Nothing
/droid.+; (a(?:015|06[35]|142p?))/i
/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i
], [MODEL, [VENDOR, 'Nothing'], [TYPE, MOBILE]], [
// Archos