mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +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));
|
||||
}
|
||||
|
||||
if (input.Length <= 2)
|
||||
bool singleDigitFactorial = input.EndsWith("!", StringComparison.InvariantCulture);
|
||||
if (input.Length <= 2 && !singleDigitFactorial)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user