From 26df2923fd5bb7da08f74231c779f41dc37c6911 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Tue, 8 Oct 2019 09:04:14 -0500 Subject: [PATCH] Fixed how scrubbing of pings in location information is handled + instead of putting a zero width unicode character, escape the `@` --- GeoffreyBot/geoffrey_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeoffreyBot/geoffrey_formatter.py b/GeoffreyBot/geoffrey_formatter.py index 21be7d2..2415f0b 100644 --- a/GeoffreyBot/geoffrey_formatter.py +++ b/GeoffreyBot/geoffrey_formatter.py @@ -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)