From d08d5131f7cfca3af2b1a5fe581d0402c1d35c04 Mon Sep 17 00:00:00 2001 From: sclement Date: Mon, 30 Oct 2023 17:27:40 +0100 Subject: [PATCH] Fix regexp --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 73f1d18..70564fc 100644 --- a/main.py +++ b/main.py @@ -35,7 +35,7 @@ async def on_message(message: discord.Message): if ( match := re.search( - r"(?Phttps?://(?:www\.)?pixiv.net/\w+/artworks/(?P\d+))", + r"(?Phttps?://(?:www\.)?pixiv.net/(?:\w+/)?artworks/(?P\d+))", message.content, ) ) is not None: