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

Route statement :segment regex not correct #33

Closed
WanWizard opened this issue Apr 14, 2011 · 2 comments
Closed

Route statement :segment regex not correct #33

WanWizard opened this issue Apr 14, 2011 · 2 comments

Comments

@WanWizard
Copy link
Member

In the Route class, ":segment" is replaced by "([^/]+([^/]*))", which contains a double set of parentheses, giving you $1 and $2.

See http://fuelphp.com/forums/topics/view/1005 for more details.

@ghost ghost assigned WanWizard Apr 14, 2011
@santiagofs
Copy link

The solution you gave ( replacing $this->search = str_replace(array(':any', ':segment'), array('.+', '[^/]*'), $this->path); on the compile statment) seems to be working fine.

@WanWizard
Copy link
Member Author

Ok, I'm going push this to the develop branch then.

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

No branches or pull requests

2 participants