Skip to content

Commit

Permalink
fix(gatsby-core-utils): decode uri-encode filename for remote file (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Nov 16, 2022
1 parent 30f9252 commit a42f4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Expand Up @@ -38,7 +38,7 @@ export function getRemoteFileExtension(url) {
* @return {String} filename
*/
export function getRemoteFileName(url) {
return getParsedPath(url).name
return decodeURIComponent(getParsedPath(url).name)
}

// createFilePath should be imported from `gatsby-core-utils`
Expand Down

0 comments on commit a42f4ca

Please sign in to comment.