From 65e6ec375b35a5f5962e264feecc50271d3048b9 Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Sat, 16 Sep 2023 20:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Image.py b/source/Image.py index 84dc00f..3c0b621 100644 --- a/source/Image.py +++ b/source/Image.py @@ -6,7 +6,7 @@ __all__ = ['Image'] class Image: - IMAGE_URL = compile(r'"CRD_WM_.*?","url":"(.*?)"') + IMAGE_URL = compile(r'"CRD_WM_[A-Z]{3,4}","url":"(.*?)"') def get_image_link(self, html: str) -> list: return [Html.format_url(i) for i in self.IMAGE_URL.findall(html)]