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

Multiple optional parts are not expanded correctly #65

Open
SujayKrishna opened this issue Aug 27, 2013 · 0 comments
Open

Multiple optional parts are not expanded correctly #65

SujayKrishna opened this issue Aug 27, 2013 · 0 comments

Comments

@SujayKrishna
Copy link

When I've a path mapping like

Path.map("#/tab/:tabName(/:subTabName)(/#/params/:parameters)")

The partition method returns an array of three

["#/tab/:tabName",
 "#/tab/:tabName/:subTabName",
 "#/tab/:tabName/:subTabName/#/params/:parameters"
]

This is obviously missing one other possible route, which is

 "#/tab/:tabName/#/params/:parameters"

That means when I have multiple optional parts specified, It does not consider scenarios where one or more of the initial parts being omitted.

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