pub fn fuzzy_score(pattern: &str, word: &str) -> Option<FuzzyMatch>Expand description
Scores word against what was typed, the way VS Code’s completion filter does: every
char of pattern in order, case-insensitively, with the first one at the start of the
word or at a word boundary (after _, -, ., space, /, :, or a lower-to-upper
case change). Matches at the start, consecutive chars, boundaries and the same case
score higher. An empty pattern matches everything with score 0. None when it does not
match.