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