Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Make exact matches win for path lookup #190

Merged
merged 1 commit into from
Jul 24, 2014

Conversation

matthewp
Copy link
Contributor

This fixes a bug where when a wildcard path is specified after an exact path the wildcard would win. The reason is that for/in loops go in the order that the keys were defined. Deleting the key and re-adding it shows the error. The fix is simply to break out the loop once we find an exact match. Fixes #189

This fixes a bug where when a wildcard path is specified *after* an
exact path the wildcard would win.  The reason is that for/in loops go
in the order that the keys were defined. Deleting the key and readding
it shows the error. The fix is simply to break out the loop once we find
an exact match. Fixes ModuleLoader#189
@guybedford
Copy link
Member

This is great, thanks!

guybedford added a commit that referenced this pull request Jul 24, 2014
Make exact matches win for path lookup
@guybedford guybedford merged commit c999a22 into ModuleLoader:master Jul 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple paths matching
2 participants