From ead914fdbea6868143edc2909fc9130cbae70dd8 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sat, 4 Dec 2021 14:40:04 +0200 Subject: [PATCH] Allow lowercase y to be interpreted as yes --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index cc4940a..b1d20c6 100644 --- a/Program.cs +++ b/Program.cs @@ -26,7 +26,7 @@ bool printSteps = false; Console.WriteLine(); Console.WriteLine("Show each step? (Y/N) "); -if(Console.ReadLine()?.Trim() == "Y") { +if(Console.ReadLine()?.Trim().ToUpperInvariant() == "Y") { printSteps = true; }