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

Small question #1

Closed
metacatdud opened this issue Jul 15, 2014 · 1 comment
Closed

Small question #1

metacatdud opened this issue Jul 15, 2014 · 1 comment

Comments

@metacatdud
Copy link

Hi man,

I was looking around for a small and very light routing system and looks like yours is closest of what i'm looking for.

I was looking around your code an i've seen you do some trimming at a point. My question is what if the route is the homepage "/"? After trimming will be "" ? Is this correct?

Thanks man :)

@herenow
Copy link
Owner

herenow commented Aug 20, 2014

Sorry for the late response.

Yep, after trimming "/" will become "", and after splitting "", it will become an empty array, so it will be placed on top of the routing tree/table.

@herenow herenow closed this as completed Oct 16, 2016
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

2 participants