mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
0dd2f5c6ce
commit
476d846995
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
|
|||
public static bool IsValidDirectoryName(string name)
|
||||
{
|
||||
if (IsReservedName(name)) return false;
|
||||
var invalidChars = Path.GetInvalidPathChars().Append('/').ToArray().Append('\\').ToArray();
|
||||
var invalidChars = Path.GetInvalidPathChars().Concat(new[] { '/', '\\' }).ToArray();
|
||||
if (name.IndexOfAny(invalidChars) >= 0)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue