Skip to content

Conversation

nateabele
Copy link
Contributor

As per #206, UrlMatcher does not allow capture groups in routes. This patch makes UrlMatcher check for unbalanced parameters and throw an error accordingly.

cc: @ksperling

@ksperling
Copy link
Contributor

Pretty sure you need to check for nPath != m.length-1 rather than nTotal. Try adding a query parameter as well in the test.

@nateabele
Copy link
Contributor Author

@ksperling You're totally right. Fixed it.

ksperling added a commit that referenced this pull request Jul 2, 2013
UrlMatcher should throw error when route contains capture groups
@ksperling ksperling merged commit 4a1ed73 into angular-ui:master Jul 2, 2013
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

Successfully merging this pull request may close these issues.

2 participants