mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix regex pattern not matching single quotes
This commit is contained in:
parent
455e444d8b
commit
63531dd1dd
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ from . import utils
|
|||
|
||||
|
||||
class HTML:
|
||||
HTML_RE = re.compile(r"<(\w+)(?: href=\"(.*)\")?>(.*)</\1>")
|
||||
HTML_RE = re.compile(r"<(\w+)(?: href=([\"'])(.*)\2)?>(.*)</\1>")
|
||||
MENTION_RE = re.compile(r"tg://user\?id=(\d+)")
|
||||
|
||||
def __init__(self, peers_by_id):
|
||||
|
|
|
|||
Loading…
Reference in a new issue