Skip to content

UAInspector is incompatible with device-detector 4.x #25

@mindseyeblind

Description

@mindseyeblind

device-detector 4.x changed from using the array() syntax for arrays to using the [] syntax in the files UAInspector uses to build its short code database. This breaks the regex used to parse these files in UAInspector.Downloader.ShortCodeMapConverter

"\\$#{var} = (?:array\\(|\\[)(?<map>.*)(?:\\)|\\]);"

Old version of device-detector -> https://raw.githubusercontent.com/matomo-org/device-detector/3.13.1/Parser/Client/Browser.php

New version of device-detector -> https://raw.githubusercontent.com/matomo-org/device-detector/4.0.0/Parser/Client/Browser.php

This issue is present in all 4.x versions of device-detector.

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