fix small logic bug in prompt_char

This commit is contained in:
Carson McManus 2021-09-06 16:56:22 -04:00
parent e4cf29e852
commit 4ac3c09338

View file

@ -96,7 +96,7 @@ fn prompt_char_impl(input: &mut impl Read, text: &str, chars: &str) -> char {
}
let answer_char = answer.chars().collect::<Vec<char>>()[0];
if chars.contains(answer_char) {
if chars.to_ascii_lowercase().contains(answer_char) {
return answer_char;
}
}