Skip to content

Commit 5661b20

Browse files
committed
prevent index search when only '_' in query
otherwise will throw OleDb error.
1 parent df5028a commit 5661b20

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal class IndexSearch
2121
private readonly ResultManager resultManager;
2222

2323
// Reserved keywords in oleDB
24-
private readonly string reservedStringPattern = @"^[\/\\\$\%]+$";
24+
private readonly string reservedStringPattern = @"^[\/\\\$\%_]+$";
2525

2626
internal IndexSearch(PluginInitContext context)
2727
{

0 commit comments

Comments
 (0)