From 63261ee0e75aa0ae05e6ceed48472a3df5d7de14 Mon Sep 17 00:00:00 2001 From: weixufeng Date: Sun, 31 Jul 2022 08:51:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E8=AE=A2=E9=98=85=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E5=89=AA=E5=88=87=E6=9D=BF=E5=8C=B9=E9=85=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/subscription/modal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/subscription/modal.tsx b/src/pages/subscription/modal.tsx index 9af0ee19..55e630fb 100644 --- a/src/pages/subscription/modal.tsx +++ b/src/pages/subscription/modal.tsx @@ -200,10 +200,11 @@ const SubscriptionModal = ({ blacklist, dependences, branch, - extensions, + ...extensionsArr ] = text .split(' ') - .map((x) => x.trim().replace(/\"/g, '').replace(/\'/, '')); + .map((x: string) => x.trim().replace(/\"/g, '').replace(/\'/, '')); + const extensions = extensionsArr.join(' '); const _type = type === 'raw' ? 'file'