We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b996cb commit 580c508Copy full SHA for 580c508
src/services/images-extractor.service.ts
@@ -17,7 +17,7 @@ export interface ImageInformation {
17
18
export type ImageInformationArray = ImageInformation[];
19
20
-const markdownImageRegex = /(!\[.*?\])\((.*?)( {0,}["'].*?['"])?\)/g;
+const markdownImageRegex = /(!\[.*?\])\((.+?\.(?:png|jpg|webp|svg|gif))['"]?\)/g;
21
const cnblogsImageLinkRegex = /\.cnblogs\.com\//;
22
23
interface ImageTypeFilter {
0 commit comments