From 89ebe4f683ef861222d82e0672aa70ab72b738c8 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Mon, 10 Feb 2020 20:59:34 +0100 Subject: [PATCH] Strip search off remote image URLs for title --- src/image/image.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/image/image.js b/src/image/image.js index e07244cea..a3b1fefc0 100644 --- a/src/image/image.js +++ b/src/image/image.js @@ -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() {