There's nothing regular about these expressions.

This commit is contained in:
dngfx 2018-09-09 18:39:56 +01:00 committed by dongfix
parent 5cb70f7a7e
commit 169d1705ac

View file

@ -1,7 +1,7 @@
import re, time
import EventManager, Utils
REGEX_KARMA = re.compile("(.*)(\+{2,}|\-{2,})$")
REGEX_KARMA = re.compile("^(.*[^-+])[-+]*(\+{2,}|\-{2,})$")
KARMA_DELAY_SECONDS = 3
class Module(object):