diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateHelper.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateHelper.cs index a1ca64aead..e49e36814a 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateHelper.cs @@ -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; }