aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/lib
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-06-21 01:11:09 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-21 00:11:09 +0000
commite3334acc9b38c13a658ea6396190d7f0acd58930 (patch)
treec72e79f273d7c3d06e305eebfcec2be56e5cf27d /src/webview/lib
parentUpdate dependencies (minor fixes) (#308) (diff)
downloadferdium-app-e3334acc9b38c13a658ea6396190d7f0acd58930.tar.gz
ferdium-app-e3334acc9b38c13a658ea6396190d7f0acd58930.tar.zst
ferdium-app-e3334acc9b38c13a658ea6396190d7f0acd58930.zip
Fix images with query strings (#318)
Diffstat (limited to 'src/webview/lib')
-rw-r--r--src/webview/lib/RecipeWebview.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts
index 3afb93acb..5701ca9c5 100644
--- a/src/webview/lib/RecipeWebview.ts
+++ b/src/webview/lib/RecipeWebview.ts
@@ -98,7 +98,7 @@ class RecipeWebview {
98 * @param {string | number | undefined | null} text to be parsed 98 * @param {string | number | undefined | null} text to be parsed
99 */ 99 */
100 isImage(url): boolean { 100 isImage(url): boolean {
101 return /\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(url); 101 return /\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(url.split(/[#?]/)[0]);
102 } 102 }
103 103
104 /** 104 /**