diff options
| author | 2019-10-09 10:33:31 +0100 | |
|---|---|---|
| committer | 2019-10-09 10:33:31 +0100 | |
| commit | 27da1f314bb3a98a5ba9f5c49def8bffed1a011f (patch) | |
| tree | 67301398413486d5a989982d616e9740063a94f2 /modules/karma.py | |
| parent | only accept space between word and modifier for word karma when : or , (diff) | |
| signature | ||
[:,] shouldn't be optional because the wider group is
Diffstat (limited to 'modules/karma.py')
| -rw-r--r-- | modules/karma.py | 2 |
1 files changed, 1 insertions, 1 deletions
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", |
