Scores how well query matches candidate, case-insensitively.
The returned FuzzyScore.ranges index into the original candidate
string (not the lowercased form), so they can be applied directly to
highlight the source text. A blank query, a blank candidate, or no match at
all yields a score of 0 and no ranges.
Parameters
query: string
The user-entered search text. Leading and trailing whitespace
is ignored.
Scores how well
querymatchescandidate, case-insensitively.The returned FuzzyScore.ranges index into the original
candidatestring (not the lowercased form), so they can be applied directly to highlight the source text. A blank query, a blank candidate, or no match at all yields a score of0and no ranges.