Fixed how scrubbing of pings in location information is handled
+ instead of putting a zero width unicode character, escape the `@`master
parent
aefa8873f2
commit
26df2923fd
|
@ -11,7 +11,7 @@ def format_message(msg_format, *args):
|
|||
for char in chars_to_escape:
|
||||
arg = arg.replace(char, "\\" + char)
|
||||
|
||||
arg = re.sub(r"@(?!\s)", "@\u200B", arg)
|
||||
arg = re.sub(r"@(?!\s)", "\@", arg)
|
||||
string_format_args.append(arg)
|
||||
|
||||
msg = msg_format.format(*string_format_args)
|
||||
|
|
Loading…
Reference in New Issue