From 4db1b48c71410dc1e00d61fa6f456bd216bfc5dd Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 4 Jul 2021 12:39:05 +0530 Subject: [PATCH] fix reply fallback stripping regex --- appservice/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appservice/main.py b/appservice/main.py index 4a4bbcc..0624247 100644 --- a/appservice/main.py +++ b/appservice/main.py @@ -252,7 +252,7 @@ class MatrixClient(AppService): event.body = tmp event.formatted_body = ( - re.sub(".*", "", event.formatted_body) + re.sub(".*", "", event.formatted_body) if event.formatted_body else event.body )