Fix test project build issue

This commit is contained in:
Jack251970 2025-01-13 10:01:50 +08:00
parent 2a423f09bb
commit ff110b3c49

View file

@ -14,9 +14,9 @@ namespace Flow.Launcher.Infrastructure
private readonly IAlphabet _alphabet; private readonly IAlphabet _alphabet;
public StringMatcher() public StringMatcher(IAlphabet alphabet = null)
{ {
_alphabet = Ioc.Default.GetRequiredService<IAlphabet>(); _alphabet = alphabet ?? Ioc.Default.GetRequiredService<IAlphabet>();
} }
public static StringMatcher Instance { get; internal set; } public static StringMatcher Instance { get; internal set; }