Skip to content

Commit

Permalink
Fix #747: Python Request mistakenly identified as Meta Quest
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Sep 20, 2024
1 parent 3de1961 commit 391b808
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ua-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@
], [MODEL, [VENDOR, GOOGLE], [TYPE, XR]], [
/(pico) (4|neo3(?: link|pro)?)/i // Pico
], [VENDOR, MODEL, [TYPE, XR]], [
/(quest( \d| pro)?)/i // Oculus Quest
/; (quest( \d| pro)?)/i // Oculus Quest
], [MODEL, [VENDOR, FACEBOOK], [TYPE, XR]], [

///////////////////
Expand Down
9 changes: 9 additions & 0 deletions test/specs/device-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,15 @@
"type": "xr"
}
},
{
"desc": "Issue #747",
"ua": "python-requests/2.25.1",
"expect": {
"vendor": "undefined",
"model": "undefined",
"type": "undefined"
}
},
{
"desc": "OnePlus One",
"ua": "Mozilla/5.0 (Linux; Android 4.4.4; A0001 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.59 Mobile Safari/537.36",
Expand Down

0 comments on commit 391b808

Please sign in to comment.