Skip to content

parsing fails when regexp encounters a character group with () #21

@gooh

Description

@gooh

The parser cannot parse rewrite rules defining () in a character group.

Example:

rewrite ^/d/([A-Za-z0-9-,():!½$@*°'"—%]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ /d?displayName=$1&module=$2&id=$3&visibility=$4;

Changing () to )( works around this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions