mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
93d20d2d2b
The fuzzy library didn't try to find a "best match", but settled on the first fuzzy match that exists. This patch includes a modified version of the fuzzy library, which recursivley tries on the rest of the search string to find a better match. If found, returns that one. Another small modification is that if a pattern fully matches, it skips the lookup entirley and returns the highest score possible for that match. |
||
---|---|---|
.. | ||
api/v1 | ||
ui | ||
federate.go | ||
federate_test.go | ||
web.go | ||
web_test.go |