diff options
author | 2022-06-21 01:11:09 +0100 | |
---|---|---|
committer | 2022-06-21 00:11:09 +0000 | |
commit | e3334acc9b38c13a658ea6396190d7f0acd58930 (patch) | |
tree | c72e79f273d7c3d06e305eebfcec2be56e5cf27d /src/webview/lib/RecipeWebview.ts | |
parent | Update dependencies (minor fixes) (#308) (diff) | |
download | ferdium-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/RecipeWebview.ts')
-rw-r--r-- | src/webview/lib/RecipeWebview.ts | 2 |
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 | /** |