aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks
diff options
context:
space:
mode:
authorGravatar jesopo2019-08-16 15:33:34 +0100
committerGravatar jesopo2019-08-16 15:33:34 +0100
commit0b192d0febc77e10cd23ce213f3f5f768fad760c (patch)
tree8b58afea6ae18c4164dc12f323d16df63b2f6da3 /modules/git_webhooks
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')
-rw-r--r--modules/git_webhooks/__init__.py2
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)