From 998623f0c3438e2dc850076c2ac4d7ceeed7c000 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 6 May 2024 21:35:11 +0800 Subject: [PATCH] fix: support space in file name (#446) * support space in file name * Update github.ts --- src/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.ts b/src/github.ts index b5da4d84f..2ad9d41f7 100644 --- a/src/github.ts +++ b/src/github.ts @@ -149,7 +149,7 @@ export const upload = async ( const [owner, repo] = config.github_repository.split("/"); const { name, size, mime, data: body } = asset(path); const currentAsset = currentAssets.find( - ({ name: currentName }) => currentName == name + ({ name: currentName }) => currentName == name.replace(' ','.') ); if (currentAsset) { console.log(`♻️ Deleting previously uploaded asset ${name}...`);