Don't eat a character when preventing highlights
This commit is contained in:
parent
4d4271435d
commit
1fb4936fad
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue