From 02abcd899e961aa893690985892b39013e24d37a Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Tue, 16 Jul 2024 14:21:43 +0800 Subject: [PATCH] update pixiv regex --- utils/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/regex.py b/utils/regex.py index 389b4a6..cf5d72a 100644 --- a/utils/regex.py +++ b/utils/regex.py @@ -5,4 +5,4 @@ x_media_url = re.compile(r"^(?:https?://)(pbs|video)\.twimg\.com/(.*)") x_tco_url = re.compile(r"(?:https?://)t\.co/.+$", re.M) message_url = re.compile(r"\[.+]", re.S) -pixiv_url = re.compile(r"^(?:https?://)?(?:www\.)?pixiv\.net/(?:en/)?artworks/(\d+)") +pixiv_url = re.compile(r"^(?:https?://)?(?:www\.)?pixiv\.net/(?:en/)?(?:artworks/|i/)(\d+)")