Use a better metric for determining keyword matches

This commit is contained in:
Mark Veidemanis 2017-11-25 19:50:57 +00:00
parent ac798016ba
commit ce8da87ea7
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class Helper(object):
totalNum += message.count(i)
message = message.replace(i, "{"+i+"}")
uniqueNum += 1
if message == msg:
if totalNum == 0:
return False
else:
return [message, uniqueNum, totalNum]