From d9d2cfb8a0c822b204ba43f54c513c6a6ca1637e Mon Sep 17 00:00:00 2001 From: Sparrkle Date: Thu, 22 Sep 2022 06:07:05 +0900 Subject: [PATCH 1/2] Special character error in ole db query (#1381) --- .../Search/WindowsIndex/IndexSearch.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs index 2e842c843..318a9bde9 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs @@ -1,4 +1,4 @@ -using Flow.Launcher.Infrastructure.Logger; +using Flow.Launcher.Infrastructure.Logger; using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks; using Microsoft.Search.Interop; using System; @@ -17,7 +17,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex { // Reserved keywords in oleDB - private const string reservedStringPattern = @"^[`\@\#\^,\&\/\\\$\%_;\[\]]+$"; + private const string reservedStringPattern = @"^[`\@\@\#\#\*\^,\&\&\/\\\$\%_;\[\]]+$"; internal static async Task> ExecuteWindowsIndexSearchAsync(string indexQueryString, string connectionString, Query query, CancellationToken token) { @@ -29,7 +29,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex await using var conn = new OleDbConnection(connectionString); await conn.OpenAsync(token); token.ThrowIfCancellationRequested(); - + await using var command = new OleDbCommand(indexQueryString, conn); // Results return as an OleDbDataReader. await using var dataReaderResults = await command.ExecuteReaderAsync(token) as OleDbDataReader; From 1dfada924382b4ca016fc613c807977a8c399154 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Wed, 28 Sep 2022 08:19:41 +1000 Subject: [PATCH 2/2] Update README.md --- Plugins/Flow.Launcher.Plugin.Calculator/Main.cs | 2 +- README.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs b/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs index 5473a6b91..bc79219b6 100644 --- a/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Runtime.InteropServices; diff --git a/README.md b/README.md index 7b8d15830..58dbd0be9 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,6 @@ And you can download