Skip to content

Commit

Permalink
Compare Wizard answers in lowercase for a little leeway. Fixes #856 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Apr 7, 2024
1 parent a0f2f4a commit a6dee3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lucky_cli/wizard/labeled_yes_no_question.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LuckyCli::Wizard::LabeledYesNoQuestion
def ask : Bool
print question_text.colorize.bold.to_s +
" (#{yes_label}/#{no_label}): ".colorize.green.bold.to_s
answer = gets.try(&.strip.gsub("'", ""))
answer = gets.try(&.strip.gsub("'", "").downcase)
case answer
when yes_label
true
Expand Down

0 comments on commit a6dee3a

Please sign in to comment.