fix small logic bug in prompt_char
This commit is contained in:
parent
e4cf29e852
commit
4ac3c09338
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue