diff options
| author | 2019-08-16 15:33:34 +0100 | |
|---|---|---|
| committer | 2019-08-16 15:33:34 +0100 | |
| commit | 0b192d0febc77e10cd23ce213f3f5f768fad760c (patch) | |
| tree | 8b58afea6ae18c4164dc12f323d16df63b2f6da3 /modules/git_webhooks/__init__.py | |
| parent | !config access should be "config", not "set". remove unused check_assert (diff) | |
| signature | ||
count numeric OR non-alphanumeric as a word boundary
Diffstat (limited to 'modules/git_webhooks/__init__.py')
| -rw-r--r-- | modules/git_webhooks/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git_webhooks/__init__.py b/modules/git_webhooks/__init__.py index 7dce8145..4b3e31ad 100644 --- a/modules/git_webhooks/__init__.py +++ b/modules/git_webhooks/__init__.py @@ -131,7 +131,7 @@ class Module(ModuleManager.BaseModule): # will fire indefininitely. continue - regex = re.compile(r"(.)\b(%s)(%s)" % ( + regex = re.compile(r"([0-9]|\W)(%s)(%s)" % ( re.escape(user.nickname[0]), re.escape(user.nickname[1:])), re.I) s = regex.sub("\\1\\2\u200c\\3", s) |
