Fixing it for real this time

This commit is contained in:
RussellChamp committed 2019-06-14 13:36:14 -04:00
1 parent 4ba577b243
commit a911d0e01b
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ def valid_answer(answer, guess):
# convert the guess and answer to just alphanumeric values. some
# "answers" acidentally have punctuation or other things in them
guess = re.sub(r'\W+', '', guess)
answer = re.sub(r'\w+', '', str(answer).lower())
answer = re.sub(r'\W+', '', str(answer).lower())
return (guess == answer or guess == p.number_to_words(answer))
def challenge_response(user, time, msg):