mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[PT Run][Folder]Support for paths with / (#18520)
This commit is contained in:
committed by
GitHub
parent
465df35d27
commit
6f306e1259
@@ -52,7 +52,7 @@ namespace Microsoft.Plugin.Folder.Sources
|
||||
{
|
||||
// if folder doesn't exist, we want to take the last part and use it afterwards to help the user
|
||||
// find the right folder.
|
||||
int index = search.LastIndexOf('\\');
|
||||
int index = search.LastIndexOfAny(new char[] { '\\', '/' });
|
||||
|
||||
// No slashes found, so probably not a folder
|
||||
if (index <= 0 || index >= search.Length - 1)
|
||||
|
||||
Reference in New Issue
Block a user