diff --git a/Flow.Launcher.Infrastructure/StringMatcher.cs b/Flow.Launcher.Infrastructure/StringMatcher.cs index 2707308d5..e85c5d6f4 100644 --- a/Flow.Launcher.Infrastructure/StringMatcher.cs +++ b/Flow.Launcher.Infrastructure/StringMatcher.cs @@ -15,13 +15,18 @@ namespace Flow.Launcher.Infrastructure private readonly IAlphabet _alphabet; - // This is a workaround to allow unit tests to set the instance public StringMatcher(IAlphabet alphabet, Settings settings) { _alphabet = alphabet; UserSettingSearchPrecision = settings.QuerySearchPrecision; } + // This is a workaround to allow unit tests to set the instance + public StringMatcher(IAlphabet alphabet) + { + _alphabet = alphabet; + } + public static MatchResult FuzzySearch(string query, string stringToCompare) { return Ioc.Default.GetRequiredService().FuzzyMatch(query, stringToCompare);