mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
use StringComparison.OrdinalIgnoreCase when calling String.Replace
This commit is contained in:
parent
afb61b247b
commit
6dd7259fcc
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
|
|||
if (dataReaderResults.GetValue(0) != DBNull.Value && dataReaderResults.GetValue(1) != DBNull.Value)
|
||||
{
|
||||
// # is URI syntax for the fragment component, need to be encoded so LocalPath returns complete path
|
||||
var encodedFragmentPath = dataReaderResults.GetString(1).Replace("#", "%23");
|
||||
var encodedFragmentPath = dataReaderResults
|
||||
.GetString(1)
|
||||
.Replace("#", "%23", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
var path = new Uri(encodedFragmentPath).LocalPath;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue