From ce8da87ea756160dcacf9489537e220f2710610c Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 25 Nov 2017 19:50:57 +0000 Subject: [PATCH] Use a better metric for determining keyword matches --- threshold | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threshold b/threshold index aee8e65..5a0234e 100755 --- a/threshold +++ b/threshold @@ -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]