remove duplicate env variable check method

This commit is contained in:
Jeremy Wu 2024-07-13 22:16:45 +10:00
parent a318bcb80e
commit 67ae8e579e

View file

@ -247,12 +247,5 @@ namespace Flow.Launcher.Plugin.Explorer.Search
x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(pathToDirectory).StartsWith(x.Path, StringComparison.OrdinalIgnoreCase))
&& WindowsIndex.WindowsIndex.PathIsIndexed(pathToDirectory);
}
internal static bool IsEnvironmentVariableSearch(string search)
{
return search.StartsWith("%")
&& search != "%%"
&& !search.Contains('\\');
}
}
}