From 8b2b6b49abbff1d842bd2a97396c8ccbce41aa5c Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Wed, 19 Jun 2024 01:03:16 +0800 Subject: [PATCH] update regex pattern --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index af97e5b..86ab792 100644 --- a/common.py +++ b/common.py @@ -14,7 +14,7 @@ if WEBHOOK: WEBHOOK_CERT = os.getenv("WEBHOOK_CERT", "cert/cert.pem") WEBHOOK_SECRET_TOKEN = os.getenv("WEBHOOK_SECRET_TOKEN") -x_url_regex = re.compile(r"^(?:https?://)(?:www\.|mobile\.|)(?:x|twitter)\.com/(.+)/status/(\d+)") +x_url_regex = re.compile(r"^(?:https?://)(?:www\.|mobile\.|)(?:x|twitter|fixvx|vxtwitter)\.com/(.+)/status/(\d+)") x_media_regex = re.compile(r"^(?:https?://)(pbs|video)\.twimg\.com/(.*)") x_tco_regex = re.compile(r"(?:https?://)t\.co/.+$", re.M) message_url_regex = re.compile(r"\[.+]", re.S)