delete spaces properly
This commit is contained in:
parent
5de6c6a212
commit
7c4273c4e2
@ -121,7 +121,14 @@ class Program
|
||||
}
|
||||
else if (expression.Length > 0)
|
||||
{
|
||||
expression = expression[..^1];
|
||||
if (expression.EndsWith(" "))
|
||||
{
|
||||
expression = expression[..^3];
|
||||
}
|
||||
else
|
||||
{
|
||||
expression = expression[..^1];
|
||||
}
|
||||
if (currentInput.Length > 0)
|
||||
currentInput = currentInput[..^1];
|
||||
if (expression.Length == 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user