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() ]]