From 4ac3c09338ebf6623ae4b90310328980c9b3f3f6 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 6 Sep 2021 16:56:22 -0400 Subject: [PATCH] fix small logic bug in prompt_char --- src/tui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui.rs b/src/tui.rs index d7ee380..4c06cfc 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -96,7 +96,7 @@ fn prompt_char_impl(input: &mut impl Read, text: &str, chars: &str) -> char { } let answer_char = answer.chars().collect::>()[0]; - if chars.contains(answer_char) { + if chars.to_ascii_lowercase().contains(answer_char) { return answer_char; } }