mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[PT Run][Folder]Support for paths with / (#18520)
This commit is contained in:
committed by
GitHub
parent
465df35d27
commit
6f306e1259
@@ -84,7 +84,9 @@ namespace Microsoft.Plugin.Folder.Sources
|
||||
throw new ArgumentNullException(nameof(search));
|
||||
}
|
||||
|
||||
if (search[0] == '\\' && (search.Length == 1 || search[1] != '\\'))
|
||||
var validRoots = new char[] { '\\', '/' };
|
||||
|
||||
if (validRoots.Contains(search[0]) && (search.Length == 1 || !validRoots.Contains(search[1])))
|
||||
{
|
||||
// Absolute path of system drive: \Windows\System32
|
||||
search = Path.Combine(Path.GetPathRoot(Environment.SystemDirectory), search.Substring(1));
|
||||
|
||||
Reference in New Issue
Block a user