diff options
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 | /** |