From 684ddd364c2ece9e19aae04c17aada5bee1e15f1 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 24 Mar 2020 04:12:09 -0400 Subject: [PATCH] Don't ignore case when linkifying display names --- src/backend/html_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index 49cf5116..bcb6cbaf 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -298,7 +298,7 @@ class HTMLProcessor: "span": {"data-mx-color"}, }} - username_link_regexes = [re.compile(r, re.IGNORECASE) for r in [ + username_link_regexes = [re.compile(r) for r in [ rf"(?{re.escape(username)})(?!\w)(?P)" for username in self.rooms_user_id_names[room_id].values() ]]