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

Support routes with regex #352

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

eschricker
Copy link
Contributor

In lumen it is possible to have regex for parameter validation directly in the route.

The generated endpoint-ids can contain characters like \d+. These are not valid in html. Therefore I have added additional replacements of characters in the endpoint-id generation.

I haven't added tests, because I am not sure where I should add them. It would be great if you could give me a hint :)

@shalvah
Copy link
Contributor

shalvah commented Oct 28, 2021

Right, but it's strange that you're only changing the endpoint ID. How about the URL displayed in the docs, and parameter matching? Do those work OK?

@shalvah shalvah merged commit e9d1ee1 into knuckleswtf:master Oct 28, 2021
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

Successfully merging this pull request may close these issues.

2 participants