Merge pull request #21 from dngfx/master

Fix regex in karma.py
This commit is contained in:
jesopo 2018-09-09 18:41:46 +01:00 committed by GitHub
commit 1172565ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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):