Don't eat a character when preventing highlights

This commit is contained in:
jesopo 2019-05-24 21:33:01 +01:00
parent 4d4271435d
commit 1fb4936fad

View file

@ -477,9 +477,9 @@ class Module(ModuleManager.BaseModule):
# will fire indefininitely. # will fire indefininitely.
continue continue
regex = re.compile(r".\b(%s)(%s)" % ( regex = re.compile(r"(.)\b(%s)(%s)" % (
user.nickname[0], user.nickname[1:]), re.I) 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 return s