From 2c0ffd1d0249ef5f81313e849d6bfebec2f0289d Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 6 May 2024 17:20:52 +0800 Subject: [PATCH] support space in file name --- src/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.ts b/src/github.ts index 878603a..79aff8a 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.replace(' ','.') == name ); if (currentAsset) { console.log(`♻️ Deleting previously uploaded asset ${name}...`);