Skip to content

Commit

Permalink
Merge pull request #526 from jparismorgan/sony
Browse files Browse the repository at this point in the history
Add Sony Xperia 1ii
  • Loading branch information
faisalman committed Sep 23, 2021
2 parents 336ce2b + b542df1 commit ef54fd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ua-parser.js
Expand Up @@ -448,7 +448,7 @@
], [MODEL, [VENDOR, GOOGLE], [TYPE, MOBILE]], [

// Sony
/droid.+ ([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
], [MODEL, [VENDOR, SONY], [TYPE, MOBILE]], [
/sony tablet [ps]/i,
/\b(?:sony)?sgp\w+(?: bui|\))/i
Expand Down
9 changes: 9 additions & 0 deletions test/device-test.json
Expand Up @@ -1647,6 +1647,15 @@
"type": "mobile"
}
},
{
"desc": "Sony Xperia 1ii",
"ua": "Mozilla/5.0 (Linux; Android 10; SOG01) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36",
"expect": {
"vendor": "Sony",
"model": "SOG01",
"type": "mobile"
}
},
{
"desc": "Sony Xperia 10ii",
"ua": "Mozilla/5.0 (Linux; Android 10; XQ-AU52) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36",
Expand Down

0 comments on commit ef54fd3

Please sign in to comment.