Don't ignore case when linkifying display names

This commit is contained in:
miruka 2020-03-24 04:12:09 -04:00
parent 3dc81700c1
commit 684ddd364c

View File

@ -298,7 +298,7 @@ class HTMLProcessor:
"span": {"data-mx-color"}, "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"(?<!\w)(?P<body>{re.escape(username)})(?!\w)(?P<host>)" rf"(?<!\w)(?P<body>{re.escape(username)})(?!\w)(?P<host>)"
for username in self.rooms_user_id_names[room_id].values() for username in self.rooms_user_id_names[room_id].values()
]] ]]