Edit

StringMatcher.FuzzyMatch(String, String, MatchOption) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The FuzzyMatch method performs a fuzzy match between two strings to determine their similarity. It compares the query parameter with the stringToCompare parameter and returns a MatchResult object that indicates the result of the comparison.

Parameters

query String

The string to be compared against the stringToCompare parameter.

stringToCompare String

The string to be compared with the query parameter.

opt MatchOption

The options that control the fuzzy matching behavior. This parameter allows you to specify how the fuzzy match should be performed, such as case sensitivity or other matching criteria.

Returns

A MatchResult object that contains the result of the fuzzy match.