mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Fixing it for real this time
This commit is contained in:
1 parent
4ba577b243
commit
a911d0e01b
3 files changed
+6
-6
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user