Skip to content

Does not parse the value correctly. #78

@haroldnbright

Description

@haroldnbright

The latest version does not parse the value correctly.

try the following as test agent strings:

  1. mozilla/5.0 (linux; android 10; k) applewebkit/537.36 (khtml, like gecko) samsungbrowser/26.0 chrome/122.0.0.0 mobile safari/537.36
  2. mozilla/5.0 (iphone; cpu iphone os 18_1 like mac os x) applewebkit/605.1.15 (khtml, like gecko) version/18.1 mobile/15e148 safari/604.1

For the 1st one it gives me Linux as the OS and for 2nd it gives me Other as OS.

When i use the online parser https://uaparser.dev/ it gives be a way different yet accurate result.
Kindly help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions