Skip to content

Creating Router with hashref cause errors #8

@bes-internal

Description

@bes-internal

With this setup

my $router = Router::R3->new(
{
'/' => 'MAIN',
'/version' => 'VERSION',
}
);

sometimes path not matched

With this setup

my $router = Router::R3->new(
{
'/'=> 'MAIN',
'/version'=> 'VERSION',
'/users/'=> 'USERS',
'/users/{userid:\d+}'=> 'USERS',
'/users/{authmethod:\D+}/{authdata}'=> 'USERAUTH',
'/ping'=> 'PING',
}
);

sometimes error as:

 creating R3 routing tree fail: PCRE study failed at offset (null), pattern: ^(\\D+)/|^()|^(\\d+) at ...

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