From 5ff5b07c22dbf24af66d173e23a4e403728fa91e Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 19 Dec 2019 15:06:15 +0000 Subject: [PATCH] permit spaces before ++/-- for single-word karma --- modules/karma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/karma.py b/modules/karma.py index f728e7e1..d6569b91 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -7,7 +7,7 @@ from src import EventManager, ModuleManager, utils KARMA_DELAY_SECONDS = 3 -REGEX_WORD = re.compile(r"^([^(\s,:]+)(?:[:,]\s*)?(\+\+|--)\s*$") +REGEX_WORD = re.compile(r"^([^(\s,:]+)(?:[:,])?\s*(\+\+|--)\s*$") REGEX_WORD_START = re.compile(r"^(\+\+|--)(?:\s*)([^(\s,:]+)\s*$") REGEX_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)")