diff options
author | Joris | 2023-02-05 11:20:04 +0100 |
---|---|---|
committer | Joris | 2023-02-05 11:20:04 +0100 |
commit | ae652a37ec2db6782565a9e843bc967e060d3906 (patch) | |
tree | cfb7b021ab30f749f44594c87f44f37af09288ad /src/gui | |
parent | f3377edd60c9427a87a658b724161407168a7efb (diff) |
Discard phonetics when checking response
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/question.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 5055417..abb8fd7 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -216,6 +216,7 @@ fn is_correct(input: &str, responses: &[String]) -> bool { responses .iter() .map(|r| r.split('(').collect::<Vec<&str>>()[0].trim()) + .map(|r| r.split('[').collect::<Vec<&str>>()[0].trim()) .any(|x| x == input) } |