Fix regexp
This commit is contained in:
parent
c592146efb
commit
d08d5131f7
2
main.py
2
main.py
@ -35,7 +35,7 @@ async def on_message(message: discord.Message):
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
match := re.search(
|
match := re.search(
|
||||||
r"(?P<url>https?://(?:www\.)?pixiv.net/\w+/artworks/(?P<id>\d+))",
|
r"(?P<url>https?://(?:www\.)?pixiv.net/(?:\w+/)?artworks/(?P<id>\d+))",
|
||||||
message.content,
|
message.content,
|
||||||
)
|
)
|
||||||
) is not None:
|
) is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user