do not permit a space between () and karma modifier
This commit is contained in:
parent
1b3ee1cb89
commit
0226b48b0c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ from src import EventManager, ModuleManager, utils
|
||||||
KARMA_DELAY_SECONDS = 3
|
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"\(([^)]+)\)\s*(\+\+|--)")
|
REGEX_PARENS = re.compile(r"\(([^)]+)\)(\+\+|--)")
|
||||||
|
|
||||||
@utils.export("channelset", utils.BoolSetting("karma-pattern",
|
@utils.export("channelset", utils.BoolSetting("karma-pattern",
|
||||||
"Enable/disable parsing ++/-- karma format"))
|
"Enable/disable parsing ++/-- karma format"))
|
||||||
|
|
Loading…
Reference in a new issue