Skip to content

Commit

Permalink
Merge pull request #4 from cat24a/feature/umlaut
Browse files Browse the repository at this point in the history
fix space handling for umlaut answer checker
  • Loading branch information
cat24a authored Oct 25, 2024
2 parents 5e35267 + de27379 commit 9d1810b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/nanoquiz/checker/UmlautAnswerChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public class UmlautAnswerChecker implements AnswerChecker {
AnswerChecker checker;

UmlautAnswerChecker(String input) {
checker = AnswerCheckerMaker.parseAnswer(replaceUmlaut(input), CaseSensitiveAnswerChecker::new);
if(input.startsWith(" ")) input = input.substring(1);
checker = AnswerCheckerMaker.parseAnswer(replaceUmlaut(input), CaseSensitiveAnswerChecker::new);
}

@Override
Expand Down

0 comments on commit 9d1810b

Please sign in to comment.