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+)")