-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Router RegEx not working. #3169
Comments
Sorry, but we don't allow to set regex flags or delimiters. But I guess we should support |
Thank you now it's working and router RegEx now support Unicode. |
I'm reopening this issue since it's not resolved yet. @mmrtonmoybd it would be great if you could check #3172 and see if it works as it should. |
I just checked it and it works fine. I added a test for this to make sure. I believe your definition for placeholder is incorrect. Try this one: $routes->addPlaceholder(':category', '[a-z\x{0980}-\x{09ff}-]+');
$routes->addPlaceholder(':pslug', '[a-zA-Z0-9\x{0980}-\x{09ff}-]+');
$routes->add('(:category)/(:pslug)', 'Single::index/$1/$2'); |
RegEx not working in router. I use this
[a-z0-9\x{0980}-\x{09ff}-]+$/u
RegEx but Codeigniter throw a error out over of range system/Router/Router.php on line 425
The text was updated successfully, but these errors were encountered: