From ae652a37ec2db6782565a9e843bc967e060d3906 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 5 Feb 2023 11:20:04 +0100 Subject: Discard phonetics when checking response --- src/gui/question.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui') 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::>()[0].trim()) + .map(|r| r.split('[').collect::>()[0].trim()) .any(|x| x == input) } -- cgit v1.2.3