Fix quotes rendering in inline filtered html

Before:
a
>x
b
>z

This message would have been shown all gray in the client due to it not
beginning with a >. Now, the colors are properly shown for both quotes
and the non-quote text in between.
This commit is contained in:
miruka
2019-10-24 09:43:40 -04:00
parent 39b4706c75
commit 986e39cdc2
3 changed files with 3 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ HTileDelegate {
) + ": " + ev.inline_content
return text.replace(
/< *span +class=['"]?quote['"]? *>(.+)<\/ *span *>/g,
/< *span +class=['"]?quote['"]? *>(.+?)<\/ *span *>/g,
'<font color="' +
theme.sidePane.room.subtitleQuote +
'">$1</font>',