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

/blog/{year:\d{4}} notation doesn't support regex with curly brace hex escape #15

Open
nwellnhof opened this issue Aug 22, 2016 · 1 comment

Comments

@nwellnhof
Copy link

The regex for the /blog/{year:\d{4}} notation should also allow A-Fa-f in inner curly braces to support hex escapes like {char:[\x{100}-\x{10FFFF}]}.

@nwellnhof
Copy link
Author

Thinking more about it, constructs like \p{Uppercase=False} should also be supported. Maybe the pattern in Route.pm

\{((?:\{[0-9,]+\}|[^{}]+)+)\}

should be changed to

\{((?:\{[^{}]*\}|[^{}]+)+)\}

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

1 participant