EventContent: avoid some false name detection
This commit is contained in:
parent
bd53993b90
commit
831dca3723
|
@ -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: ` +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user