mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 17:42:45 +08:00
fix launcher network path (#4224)
This commit is contained in:
parent
e8c5f3a882
commit
4c70e75bfc
@ -257,6 +257,11 @@ namespace Microsoft.Plugin.Folder
|
|||||||
|
|
||||||
var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last();
|
var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last();
|
||||||
var sanitizedPath = Regex.Replace(search, @"[\/\\]+", "\\");
|
var sanitizedPath = Regex.Replace(search, @"[\/\\]+", "\\");
|
||||||
|
// A network path must start with \\
|
||||||
|
if (sanitizedPath.StartsWith("\\"))
|
||||||
|
{
|
||||||
|
sanitizedPath = sanitizedPath.Insert(0, "\\");
|
||||||
|
}
|
||||||
|
|
||||||
return new Result
|
return new Result
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user