Skip to content

permit some no-op escape sequences for compatibility purposes #501

Closed
@KiChjang

Description

@KiChjang

Some of the regexes found in https://github.com/ua-parser/uap-core is throwing errors when parsed with the regex crate:

regex parse error:
    (?:\/[A-Za-z0-9\.]+)? *([A-Za-z0-9 \-_\!\[\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*))/(\d+)(?:\.(\d+)(?:\.(\d+))?)?
       ^^
error: unrecognized escape sequence

This sounds like we're deviating from the regex spec here. Can someone confirm?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions