Skip to content

Commit 2643c7d

Browse files
committed
exclude index search on special chars
1 parent 485b314 commit 2643c7d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Infrastructure.Logger;
1+
using Flow.Launcher.Infrastructure.Logger;
22
using Microsoft.Search.Interop;
33
using System;
44
using System.Collections.Generic;
@@ -15,7 +15,7 @@ internal class IndexSearch
1515
private readonly ResultManager resultManager;
1616

1717
// Reserved keywords in oleDB
18-
private readonly string reservedStringPattern = @"^[\/\\\$\%_]+$";
18+
private readonly string reservedStringPattern = @"^[`\@\#\^,\&\/\\\$\%_]+$";
1919

2020
internal IndexSearch(PluginInitContext context)
2121
{

Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Flow.Launcher.Plugin.Explorer.Search;
22
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
33
using System.Collections.Generic;
4-
using System.Text.Json.Serialization;
54

65
namespace Flow.Launcher.Plugin.Explorer
76
{

0 commit comments

Comments
 (0)