ua-parser-js icon indicating copy to clipboard operation
ua-parser-js copied to clipboard

Operation system from microsoft events not parsed

Open Volna13 opened this issue 2 years ago • 0 comments
trafficstars

We have events from MS that contain Useragent string.

Here is example of useragents:

  1. "Microsoft Office/16.0 (OMDroid 13; Microsoft Office Mobile 16.0.16227; Pro)"
  2. "Microsoft Office PowerPoint/16.71.312 (Mac OS/13.2.1; Desktop; en-US; AppStore; Apple/MacBookPro16,1)"
  3. "Microsoft Office Excel/16.0 (OMDroid 10; Microsoft Excel 16.0; Pro)"

uaParser return empty response.

Expected response (for example for 2)

{
  "ua": "Microsoft Office PowerPoint/16.71.312 (Mac OS/13.2.1; Desktop; en-US; AppStore; Apple/MacBookPro16,1)",
  "browser": {},
  "engine": {},
  "os": {
    "name": "Mac OS",
    "version": "13.2.1"
   },
  "device": {
    "vendor": "Apple",
    "model": "iPhone",
    "type": "mobile"
  },
  "cpu": {}
}

Current "ua-parser-version" - "ua-parser-js": "^1.0.35"

if "Mac OS/13.2.1" is problem we can convert it to "Mac OS 13.2.1"

Volna13 avatar Apr 15 '23 14:04 Volna13