EventContent: avoid some false name detection

This commit is contained in:
miruka 2020-03-23 16:50:12 -04:00
parent bd53993b90
commit 831dca3723

View File

@ -17,7 +17,7 @@ HRowLayout {
const lines = [] const lines = []
for (const [name, link] of mentions) { for (const [name, link] of mentions) {
if (name.startsWith("#") || name.startsWith("!")) continue if (! link.match(/^https?:\/\/matrix.to\/#\/@.+/)) continue
lines.push( lines.push(
`.mention[data-mention='${name}'] { color: ` + `.mention[data-mention='${name}'] { color: ` +