From 99d527cd51f482ea043e60cef56c7873d4d2ad72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E5=A4=8F=E5=B0=A7?= <3446798488@qq.com> Date: Thu, 23 May 2024 19:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=20c?= =?UTF-8?q?ss=20=E7=9A=84=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/subsets/src/utils/getSubsetsFromCSS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/subsets/src/utils/getSubsetsFromCSS.ts b/packages/subsets/src/utils/getSubsetsFromCSS.ts index e8a5e81..d8a333b 100644 --- a/packages/subsets/src/utils/getSubsetsFromCSS.ts +++ b/packages/subsets/src/utils/getSubsetsFromCSS.ts @@ -5,7 +5,7 @@ export const getSubsetsFromCSS = (css: string): Subsets => { const list = css.match(/@font-face[\s\S]+?\}/g); if (!list) return []; return list.map((face) => { - const unicodeList = face.match(/unicode-range:(.*(?:[,;]))+/); + const unicodeList = face.match(/unicode-range:([\s\S]*(?:[,;]))+/); if (!unicodeList) return []; const range = unicodeList[1]; return range