prevent index search when only '_' in query

otherwise will throw OleDb error.
This commit is contained in:
Jeremy Wu 2020-08-26 08:47:19 +10:00
parent df5028ada9
commit 5661b20dfb

View file

@ -21,7 +21,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
private readonly ResultManager resultManager;
// Reserved keywords in oleDB
private readonly string reservedStringPattern = @"^[\/\\\$\%]+$";
private readonly string reservedStringPattern = @"^[\/\\\$\%_]+$";
internal IndexSearch(PluginInitContext context)
{