Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Router with hashref cause errors #8

Open
bes-internal opened this issue May 23, 2017 · 1 comment
Open

Creating Router with hashref cause errors #8

bes-internal opened this issue May 23, 2017 · 1 comment

Comments

@bes-internal
Copy link

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 ...
@CindyLinz
Copy link
Owner

Thank you for informing me~ I'm still working on it..
I've pushed a commit 011d8fea7821c27907973ad0f4352369f6483c10 that fixed the creating R3 routing tree fail: PCRE study failed at offset (null), pattern... problem. But the first problem is unfixed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants