Skip to content

Commit

Permalink
Strip search off remote image URLs for title
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Feb 10, 2020
1 parent 80e1dc5 commit 89ebe4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/image/image.js
Expand Up @@ -80,7 +80,9 @@ class Image {
}

get title() {
return basename(this.path, this.ext)
return this.isRemote ?
this.path.split('/').pop().replace(/\?.*/, '') :
basename(this.path, this.ext)
}

get checksum() {
Expand Down

0 comments on commit 89ebe4f

Please sign in to comment.