Skip to content

Commit 6dd7259

Browse files
committed
use StringComparison.OrdinalIgnoreCase when calling String.Replace
1 parent afb61b2 commit 6dd7259

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ internal List<Result> ExecuteWindowsIndexSearch(string indexQueryString, string
5252
if (dataReaderResults.GetValue(0) != DBNull.Value && dataReaderResults.GetValue(1) != DBNull.Value)
5353
{
5454
// # is URI syntax for the fragment component, need to be encoded so LocalPath returns complete path
55-
var encodedFragmentPath = dataReaderResults.GetString(1).Replace("#", "%23");
55+
var encodedFragmentPath = dataReaderResults
56+
.GetString(1)
57+
.Replace("#", "%23", StringComparison.OrdinalIgnoreCase);
5658

5759
var path = new Uri(encodedFragmentPath).LocalPath;
5860

0 commit comments

Comments
 (0)