mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
parent
be83f8e25e
commit
7c9f1cb8ef
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class HTML:
|
|||
|
||||
async def parse(self, text: str):
|
||||
# Strip whitespace characters from the end of the message, but preserve closing tags
|
||||
text = re.sub(r"\s+(</[\w\W]*>)\s*$", r"\1", text)
|
||||
text = re.sub(r"\s*(</[\w]*>)\s*$", r"\1", text)
|
||||
|
||||
parser = Parser(self.client)
|
||||
parser.feed(utils.add_surrogates(text))
|
||||
|
|
|
|||
Loading…
Reference in a new issue