Skip to content

Commit

Permalink
fix: filename URI decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqmanuja committed Nov 10, 2024
1 parent 7ea9296 commit e927493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function makeVariantsUrl({ org, repo }: App, version: string) {
export function extractFileNameFromUrl(url: string) {
const urlobj = new URL(url);
const parts = urlobj.pathname.split("/");
const filename = decodeURI(parts[parts.length - 1]);
const filename = decodeURIComponent(parts[parts.length - 1]);
return filename;
}

Expand Down

0 comments on commit e927493

Please sign in to comment.