Fix reply starting with a >quote not being colored
For a message that was a reply to another, and that that started with a "> ..." quote, the quote wasn't getting highlighted due to regex not accounting for cases where one is preceded by a </mx-reply> closing tag.
This commit is contained in:
		| @@ -183,9 +183,9 @@ class HTMLProcessor: | ||||
|     inline_quote_regex = re.compile(r"(^|⏎|>)(\s*>[^⏎\n]*)", re.MULTILINE) | ||||
|  | ||||
|     quote_regex = re.compile( | ||||
|         r"(^|<span/?>|<p/?>|<br/?>|<h\d/?>)" | ||||
|         r"(^|<span/?>|<p/?>|<br/?>|<h\d/?>|<mx-reply/?>)" | ||||
|         r"(\s*>.*?)" | ||||
|         r"(<span/?>|</?p>|<br/?>|</?h\d>|$)", | ||||
|         r"(<span/?>|</?p>|<br/?>|</?h\d>|</mx-reply/?>|$)", | ||||
|         re.MULTILINE, | ||||
|     ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	