Skip to content

Commit 998623f

Browse files
authored
fix: support space in file name (#446)
* support space in file name * Update github.ts
1 parent 0979303 commit 998623f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const upload = async (
149149
const [owner, repo] = config.github_repository.split("/");
150150
const { name, size, mime, data: body } = asset(path);
151151
const currentAsset = currentAssets.find(
152-
({ name: currentName }) => currentName == name
152+
({ name: currentName }) => currentName == name.replace(' ','.')
153153
);
154154
if (currentAsset) {
155155
console.log(`♻️ Deleting previously uploaded asset ${name}...`);

0 commit comments

Comments
 (0)