From 27da1f314bb3a98a5ba9f5c49def8bffed1a011f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 9 Oct 2019 10:33:31 +0100 Subject: [:,] shouldn't be optional because the wider group is --- modules/karma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/karma.py b/modules/karma.py index d4d697eb..d5b9ae9f 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_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)") @utils.export("channelset", utils.BoolSetting("karma-pattern", -- cgit v1.3.1-10-gc9f91