mirror of
https://github.com/Stone-Red-Code/ClipCMD.git
synced 2026-09-04 00:46:10 +02:00
Fixed a whoopsie
This commit is contained in:
@@ -253,7 +253,7 @@ public partial class MainWindow : Window
|
|||||||
{
|
{
|
||||||
AddError(commandNames, $"Command \"{commandName}\" is empty!");
|
AddError(commandNames, $"Command \"{commandName}\" is empty!");
|
||||||
}
|
}
|
||||||
else if (commandName.Any(char.IsWhiteSpace))
|
else if (commandName.Trim().Any(char.IsWhiteSpace))
|
||||||
{
|
{
|
||||||
AddError(commandNames, $"Command \"{commandName}\" can't contain white spaces!");
|
AddError(commandNames, $"Command \"{commandName}\" can't contain white spaces!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user