We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be83f8e commit 7c9f1cbCopy full SHA for 7c9f1cb
1 file changed
pyrogram/parser/html.py
@@ -111,7 +111,7 @@ def __init__(self, client: Optional["pyrogram.Client"]):
111
112
async def parse(self, text: str):
113
# Strip whitespace characters from the end of the message, but preserve closing tags
114
- text = re.sub(r"\s+(</[\w\W]*>)\s*$", r"\1", text)
+ text = re.sub(r"\s*(</[\w]*>)\s*$", r"\1", text)
115
116
parser = Parser(self.client)
117
parser.feed(utils.add_surrogates(text))
0 commit comments