Skip to content

Commit

Permalink
fix: support space in file name (#446)
Browse files Browse the repository at this point in the history
* support space in file name

* Update github.ts
  • Loading branch information
MystiPanda committed May 6, 2024
1 parent 0979303 commit 998623f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}...`);
Expand Down

0 comments on commit 998623f

Please sign in to comment.