mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 11:34: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. |
||
---|---|---|
.. | ||
fuzzy.js |