Skip to content

Commit

Permalink
Fix file extension containing dot.
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherjames committed Feb 15, 2019
1 parent 8e73a31 commit d10a826
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby-remark-images/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ module.exports = (
const getImageInfo = uri => {
const { url, query } = queryString.parseUrl(uri)
return {
ext: path.extname(url),
ext: path
.extname(url)
.split(`.`)
.pop(),
url,
query,
}
Expand Down

0 comments on commit d10a826

Please sign in to comment.