Update plugin.py

This commit is contained in:
Gordon Shumway 2019-03-10 03:05:49 -04:00 committed by GitHub
parent f52936ab2b
commit e25d7bcfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -289,8 +289,8 @@ class Jeopardy(callbacks.Plugin):
channel = msg.args[0]
correct = False
for ans in self.a:
guess = re.sub('[^a-zA-Z]+', '', msg.args[1]).lower()
answer = re.sub('[^a-zA-Z]+', '', ans).lower()
guess = re.sub('[^a-zA-Z0-9]+', '', msg.args[1]).lower()
answer = re.sub('[^a-zA-Z0-9]+', '', ans).lower()
dist = self.DL(guess, answer)
flexibility = self.registryValue('flexibility', self.channel)
if dist <= len(ans) / flexibility: