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

URI with symbols #70

Open
mfoland90 opened this issue Sep 28, 2023 · 1 comment
Open

URI with symbols #70

mfoland90 opened this issue Sep 28, 2023 · 1 comment

Comments

@mfoland90
Copy link

I am making a Request Feedback system, and I have a uri like this:
https://requests.steadfastinnovations.com/dev/idea/get-requesttrak-up!

It's acting as that isn't found. I haven't messed with Regex. How would I allow a symbol like an exclamation point in the uri?

@mfoland90
Copy link
Author

Never mind, I've had to add the regex code.
Route::add('/idea/([a-zA-Z0-9-!?]*)', function($slug) {
require ROOTDIR . '/views/topic.php';
}, ['get','post']);

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