This repository was archived by the owner on Jul 13, 2020. It is now read-only.
Commit 541c51e
committed
Make exact matches win for path lookup
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 #1891 parent bc590de commit 541c51e
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
| 393 | + | |
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
| |||
0 commit comments