From 1fb4936fadeb874a1020ddc042c5949eb286dd56 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 24 May 2019 21:33:01 +0100 Subject: [PATCH] Don't eat a character when preventing highlights --- modules/github/__init__.py | 4 ++-- 1 file 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