Skip to content

Commit

Permalink
bugfix: http images not processed properly (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Jun 29, 2022
1 parent 73c38f8 commit 3ed755d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processors/imageProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class ImageProcessor {
private utils: ObsidianUtils;
private parser: CommentParser;

private markdownImageRegex = /^[ ]{0,3}!\[([^\]]*)\]\((.*(?:jpg|png|jpeg|gif|bmp|webp|svg))\)\s?(<!--.*-->)?/im;
private markdownImageRegex = /^[ ]{0,3}!\[([^\]]*)\]\((.*(?:jpg|png|jpeg|gif|bmp|webp|svg)?)\)\s?(<!--.*-->)?/im;

private obsidianImageRegex = /!\[\[(.*(?:jpg|png|jpeg|gif|bmp|webp|svg))\s*\|?\s*([^\]]*)??\]\]\s?(<!--.*-->)?/i;
private obsidianImageReferenceRegex = /\[\[(.*(?:jpg|png|jpeg|webp|gif|bmp|svg))\|?([^\]]*)??\]\]/i;
Expand Down

0 comments on commit 3ed755d

Please sign in to comment.