Jeopardy: simplify last commit.

This commit is contained in:
oddluck 2020-02-06 20:22:54 +00:00
parent be8b4850b7
commit 64a2b4362c
1 changed files with 2 additions and 2 deletions

View File

@ -415,8 +415,8 @@ class Jeopardy(callbacks.Plugin):
guess = re.sub('[^a-zA-Z0-9 ]+', '', guess)
guess = re.sub('^a |^an |^the |^or ', '', guess).replace(' ', '')
elif not self.correct:
answer = re.sub('[^a-zA-Z0-9 ]+', '', ans).replace(' ', '')
guess = re.sub('[^a-zA-Z0-9 ]+', '', guess).replace(' ', '')
answer = re.sub('[^a-zA-Z0-9]+', '', ans)
guess = re.sub('[^a-zA-Z0-9]+', '', guess)
if not self.correct and guess == answer:
self.correct = True
elif not self.correct: