do not permit a space between () and karma modifier

This commit is contained in:
jesopo 2019-10-08 14:34:14 +01:00
parent 1b3ee1cb89
commit 0226b48b0c

View file

@ -8,7 +8,7 @@ from src import EventManager, ModuleManager, utils
KARMA_DELAY_SECONDS = 3
REGEX_WORD = re.compile(r"^([^(\s]+)[:,]?\s*(\+\+|--)\s*$")
REGEX_PARENS = re.compile(r"\(([^)]+)\)\s*(\+\+|--)")
REGEX_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)")
@utils.export("channelset", utils.BoolSetting("karma-pattern",
"Enable/disable parsing ++/-- karma format"))