mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[PT Run - Calculator plugin] Allow single-digit factorial (#14736)
This commit is contained in:
@@ -28,7 +28,8 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator
|
|||||||
throw new ArgumentNullException(paramName: nameof(input));
|
throw new ArgumentNullException(paramName: nameof(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.Length <= 2)
|
bool singleDigitFactorial = input.EndsWith("!", StringComparison.InvariantCulture);
|
||||||
|
if (input.Length <= 2 && !singleDigitFactorial)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user