mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01: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