aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-09 18:41:46 +0100
committerGravatar GitHub2018-09-09 18:41:46 +0100
commit1172565ed681892120303fb8ec5b1796262e3a0b (patch)
treeb32ed4f4130c99c89ae940d83b7c46c2c01bf8e4 /modules
parentFix an incorrect call to event["stderr"] in karma.py (diff)
parentThere's nothing regular about these expressions. (diff)
Merge pull request #21 from dngfx/master
Fix regex in karma.py
Diffstat (limited to 'modules')
-rw-r--r--modules/karma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/karma.py b/modules/karma.py
index c7c3a263..b0c220a8 100644
--- a/modules/karma.py
+++ b/modules/karma.py
@@ -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):