support space in file name

This commit is contained in:
MystiPanda 2024-05-06 17:20:52 +08:00 committed by GitHub
parent 9b795e5782
commit 2c0ffd1d02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}...`);