diff options
| author | 2019-05-24 21:33:01 +0100 | |
|---|---|---|
| committer | 2019-05-24 21:33:01 +0100 | |
| commit | 1fb4936fadeb874a1020ddc042c5949eb286dd56 (patch) | |
| tree | e79b1a81aa2a03f8a77a2557e2ee892974817291 /modules/github | |
| parent | Use regex to prevent highlights in github module (diff) | |
| signature | ||
Don't eat a character when preventing highlights
Diffstat (limited to 'modules/github')
| -rw-r--r-- | modules/github/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py index a33ab951..105081db 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -477,9 +477,9 @@ class Module(ModuleManager.BaseModule): # will fire indefininitely. continue - regex = re.compile(r".\b(%s)(%s)" % ( + regex = re.compile(r"(.)\b(%s)(%s)" % ( user.nickname[0], user.nickname[1:]), re.I) - s = regex.sub("\\1\u200c\\2", s) + s = regex.sub("\\1\\2\u200c\\3", s) return s |
