@squawk
    Preparing search index...

    Function fuzzyScore

    • 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.

      • candidate: string

        The string to score the query against.

      Returns FuzzyScore

      The match score and the matched ranges.